windows - Converting CUDA .cu file to PTX file -


i having problem converting .cu .ptx. using nvcc follows:

"c:\ program files\nvidia gpu computing toolkit\cuda\v5.0\bin\nvcc" -ptx -ccbin "c:\ program files (x86)\microsoft visual studio 10.0\vc\bin" -o foo.ptx foo.cu

the following displayed in return:

foo.cu c1xx : fatal error c1083: cannot open source file: 'foo.cu': no such file or directory 

foo.cu located in \cuda\v5.0\bin.

go project properties in visual studio 2010. in cuda c/c++, in common change property keep preprocessed files yes(--keep). build project. should able see .ptx file in folder c:/users/mansoor/documents/visual studio 2010/projects/testing_ptx/x64/debug depending on configuration (x32 or x64). if .cu filename testingptx.cu filename ptx file testingptx.compute_xx.ptx xx compute capability defined in project properties. multiple compute capability options there dedicated .ptx file. content of typical ptx file can seen @ pastebin.com straight forward took me quite time figure out because there not material on internet regarding generation of .ptx within visual studio environment. hope newbies me.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -