Hi
I am sorry for the delay. I haven't been here for a few days.
I am sure that my solution is pretty clumsy, and that it should be easier, but after a lot of trying, this worked for me, though I cannot guarantee that it will work on your computer. It is shorter and more simple than it seems, I just tried to explain it in details, because I don't how much you know.
so these are the steps:
1. Open the command prompt (go to start and run a search for cmd).
2. Run a search on your computer for a file named vsvars32.bat.
3. After you found it, with right click, open its properties and copy its path.
4. Go to the command prompt and run the command:
cd paste here the path of vsvars32.bat
on my computer it looks like that:
cd C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools
and press enter. (cd = change directory)
5. after that, go to the location of the file vsvars32.bat ,and put there
the CUDA file (file with .cu suffix) that you want to compile.
6. Run a search on your computer for a file named cl.exe. I found a few with that
name. I guess you should take the one that is associated with
visual studio 2010.
when you find the file, copy it also to the directory with vsvars32.bat
and the CUDA file.
7. Now that the CUDA file and vsvars32.bat file and cl.exe file are all in the same
location and you changed the directory in the command prompt to this
location (with the cd command), go to the command prompt and run the
following command:
nvcc -ptx
cuda_file_name.cu
of course that you should change the cuda_file_name in this command
to the name of your CUDA file. and press enter.
8. If it was successful, the PTX file should appear now in the same location with
the vsvars32.bat, the CUDA file and the cl.exe file.
I hope it helped.
Ask again if something is unclear.
"Dhanya Pankaj" wrote in message <kffj9p$924$
1...@newscl01ah.mathworks.com>...