Vulkan

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 27 下一页

2012年12月20日

glut.h 与 stdlib.h 的exit冲突问题的解决

摘要: exit重定义. 在网上搜了解决方法:方案一: 在C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl\glut.h的144行处,即 #if defined(_WIN32) #ifndef GLUT_BUIL... 阅读全文

posted @ 2012-12-20 11:33 Vulkan 阅读(179) 评论(0) 推荐(0) 编辑

2012年12月6日

C++文件读取与写入

摘要: 经常用到文件读写,图省事,记下来以后直接COPY先写入文件/***以下代码为将va的内容写入到4.txt文件* 格式为:* 1,2* 2,4* 3,6***/#include #include #include #include using namespace std;struct mpoin... 阅读全文

posted @ 2012-12-06 16:10 Vulkan 阅读(328) 评论(0) 推荐(0) 编辑

2012年12月5日

VTK VS2010 WIN7 64

摘要: 以下内容,部分借鉴了网上的一个教程,对其中的不完善部分做了修改。有啥问题,可以留言。1. 必须下载:vtk-5.10.1.zip 源程序vtkdata-5.10.1.zip 数据(vtk相关安装程序下载:http://vtk.org)cmake-2.8.2-win32-x86.zip(cmake程序... 阅读全文

posted @ 2012-12-05 20:42 Vulkan 阅读(287) 评论(0) 推荐(0) 编辑

2012年11月30日

程序运行时间

摘要: /***用高精度计时器,毫秒为单位***/#include #include using namespace std ;int main(void){ LARGE_INTEGER BegainTime ; LARGE_INTEGER EndTime ; LARGE_INTEGER Frequen... 阅读全文

posted @ 2012-11-30 19:25 Vulkan 阅读(254) 评论(0) 推荐(0) 编辑

CUDA与C++

摘要: 1.使用thrust:http://stackoverflow.com/questions/13185221/cuda-host-object-to-devicehttp://blog.csdn.net/shenlan282/article/details/8237576http://blog.cs... 阅读全文

posted @ 2012-11-30 19:07 Vulkan 阅读(1023) 评论(0) 推荐(0) 编辑

2012年11月29日

Thrust快速入门教程(三)——迭代器与静态调度

摘要: http://blog.csdn.net/dreampursue/article/details/6278752在这节中我们曾使用了这样的表达式,H.begin() 、H.end()、D.begin() + 7。begin()与end()的返回值在C++中被称为迭代器。vector的迭代器类似于数组... 阅读全文

posted @ 2012-11-29 10:41 Vulkan 阅读(405) 评论(0) 推荐(0) 编辑

Thrust快速入门教程(二)——Vector的使用

摘要: http://blog.csdn.net/dreampursue/article/details/6278737Trust 提供了两个vector容器:host_vector 与 device_vector。按照命名规则,host_vector位于主机端,device_vector位于GPU设备端。... 阅读全文

posted @ 2012-11-29 10:40 Vulkan 阅读(650) 评论(0) 推荐(0) 编辑

Thrust快速入门教程(一)——简介

摘要: http://blog.csdn.net/dreampursue/article/details/6278726thrust网站 http://thrust.github.com/ <<<-----------very good!!Thrust 是一个类似于STL的针对CUDA的C++模板库。T... 阅读全文

posted @ 2012-11-29 10:39 Vulkan 阅读(299) 评论(0) 推荐(0) 编辑

2012年11月27日

cuda的PACK

摘要: https://devtalk.nvidia.com/default/topic/387841/structure-pack-issue/When I copy an instance of the following structurefrom Visual Studio C++ code to ... 阅读全文

posted @ 2012-11-27 20:16 Vulkan 阅读(129) 评论(0) 推荐(0) 编辑

2012年11月20日

Homogeneous Coordinates

摘要: Problem: Two parallel lines can intercept. Railroad gets narrower and meets at horizon.In Euclidean space (geometry), two parallel lines on the same p... 阅读全文

posted @ 2012-11-20 17:19 Vulkan 阅读(207) 评论(0) 推荐(0) 编辑

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 27 下一页

导航