03 2015 档案

摘要:转自:https://kheresy.wordpress.com/2007/11/05/nvidia-cuda-api%EF%BC%88%E4%B8%8A%EF%BC%89/Function type qualifiers用來指定 function 是要在 host 或 device 上執行,以及是... 阅读全文
posted @ 2015-03-24 09:58 qingsun_ny 阅读(521) 评论(0) 推荐(0)
摘要:在vs c#中,int就等价于int32, 所以通常也是使用int32当在统计总数时,最好使用int32,int16数值范围太小,如果超出,就会变成随机数。 阅读全文
posted @ 2015-03-22 08:30 qingsun_ny 阅读(651) 评论(0) 推荐(0)
摘要:在vs console下,1 添加计时器#include double start = GetTickCount();double end = GetTickCount();totalTime += (end - start);精度毫秒2 让doc窗口不在程序结束后马上消失在main()的结尾添加s... 阅读全文
posted @ 2015-03-21 23:45 qingsun_ny 阅读(1739) 评论(0) 推荐(0)
摘要:将图片截取然后粘贴在OneNote中,然后右键图片 复制文字, 然后将文字粘贴在word或者写字板中即可。 阅读全文
posted @ 2015-03-21 10:14 qingsun_ny 阅读(255) 评论(0) 推荐(0)
摘要:except for 除了...以外(与 except for 连用的整体词与 except for 所跟的词往往不是同类的,是指整体中除去 一个细节。)eg:Your composition is good except for a few spelling mistakes. 除了几处拼写错... 阅读全文
posted @ 2015-03-20 09:56 qingsun_ny 阅读(2313) 评论(0) 推荐(0)
摘要:yet有并且的意思 阅读全文
posted @ 2015-03-15 10:30 qingsun_ny 阅读(140) 评论(0) 推荐(0)
摘要://这个变量必须在while循环外面 //原因是当将loadModels[modelNum].g_3DModel[0]赋值给新建类后 //里面的数值拷贝过去了,而里头的指针只给了地址 //所以如果这个调用了析构函数,即出了它的作用域, //指针的值也就销毁了参考g_3DModel的struct是s... 阅读全文
posted @ 2015-03-13 09:48 qingsun_ny 阅读(240) 评论(0) 推荐(0)
摘要:在添加thrust库中的host_vector.h等头文件时C:\NVIDIA\cudatoolkit\include\thrust\detail\config中的debug.h一直出问题,因此注释#ifndef THRUST_DEBUG# ifndef NDEBUG# if (DEBUG ... 阅读全文
posted @ 2015-03-13 09:20 qingsun_ny 阅读(310) 评论(0) 推荐(0)
摘要:if (...){ class a;}在if语句结束后,class a的析构函数被调用。很简单但是经常会疑惑或者犯错误,不知道析构函数什么时候调用。而且如果class a中含有指针,然后给class b赋值后,经常会犯一个知名的错误。class a{int i;int * pointer;...}... 阅读全文
posted @ 2015-03-12 11:18 qingsun_ny 阅读(262) 评论(0) 推荐(0)
摘要:struct t3DObject //对象信息结构体{ int numOfVerts; // 模型中顶点的数目 int numOfFaces; // 模型中面的数目 int numTexVertex; // 模型中纹理坐标的数目 int materialID; ... 阅读全文
posted @ 2015-03-12 10:26 qingsun_ny 阅读(273) 评论(0) 推荐(0)
摘要:转自:http://www.cnblogs.com/yeahgis/p/3853420.htmlVS2010错误:未找到导入的项目XXX,请确认声明中的路径正确,且磁盘上存在该文件。E:\IGSNRR\dev\PhDThesisCode_CUDA\gtcg\gtcg.vcxproj : error ... 阅读全文
posted @ 2015-03-11 21:08 qingsun_ny 阅读(405) 评论(0) 推荐(0)
摘要:1 无法装上CUDA的toolkit卸载所有的NVIDIA相关的app,包括NVIDIA的显卡驱动,然后重装。2之前的文件打不开,one or more projects in the solution were not loaded correctly. please see the output... 阅读全文
posted @ 2015-03-11 19:46 qingsun_ny 阅读(836) 评论(0) 推荐(0)
摘要:c++的类可以分为两类,一种是entity的类(i.e.,实体类),一种是function的类(i.e.,功能类)。对于构造entity的类,包括这种entity的属性已经它本身具备的功能;而function的类,就是包括处理entity的功能以及一些参数,但是这些功能不是entity本身具备的。这... 阅读全文
posted @ 2015-03-11 10:38 qingsun_ny 阅读(291) 评论(0) 推荐(0)
摘要:通常我们在VS中添加类,比如要声明一个car的类我们通常在新建的时候会写成CCar,虽然新建出来的文件的名词是car,但是我们使用这个类来声明一个类的时候,是CCar car;如果新建类写成Car也可以,但是CCar比较规范,第一个c说明了是class。 阅读全文
posted @ 2015-03-11 08:58 qingsun_ny 阅读(465) 评论(0) 推荐(0)
摘要:void gluLookAt( GLdouble eyeX, GLdouble eyeY, GLdouble eyeZ, GLdouble centerX, GLdouble centerY, GLdouble centerZ, GLdouble up... 阅读全文
posted @ 2015-03-10 11:47 qingsun_ny 阅读(768) 评论(0) 推荐(0)
摘要:参考:http://blog.csdn.net/junjiehe/article/details/16888197使用VisualStudio 编译链接中可能出现如下错误:LINK : fatal error LNK1123: failure during conversion to COFF: f... 阅读全文
posted @ 2015-03-09 16:48 qingsun_ny 阅读(132) 评论(0) 推荐(0)
摘要:// stdafx.h : include file for standard system include files,// or project specific include files that are used frequently, but// are changed infreque... 阅读全文
posted @ 2015-03-09 16:32 qingsun_ny 阅读(134) 评论(0) 推荐(0)