My simple helloworld application when build using 32 bit visual studio application it is working fine, where as if I am changing it to 64 bit visual studio application it is not getting executed
Even there is no error message in output console.
#include “cuda_runtime.h” #include “device_launch_parameters.h”
#include<stdio.h> global void welcome() {
printf(“Hello world :)”);
}
modified my code by adding error checks, still same issue. All print statements are executing till kernel launch. from there it is not getting executed a single line.
am I missing anything to change properties any where is visual studio 2015, while switching 32bit to 64 bit.?
I uninstalled and installed entire os and cuda for 3-4 times. If it is a broken install, can you please mention what are possible reasons or am I missing any libraries.
Why does the posted code have explicit #includes for CUDA header files? Code in a .cu file, compiled using the nvcc compiler driver, shouldn’t need these.
You might want to try building from the command line instead of from the IDE. The IDE has some easy-to-overlook configuration settings that can trip up programmers. I’d say 90% of problems reported with MSVS IDE in these CUDA forums are PEBKAC errors facilitated by the use of the IDE.
For what it is worth, I have encountered no issues building 64-bit applications with CUDA 8 on 64-bit Windows 7 using MSVS 2010. What version of Windows are you running?
There does seem to be an issue particularly with x64, CUDA 8, Windows 10, and K40c.
The issue has been reproduced at NVIDIA. I’m not sure when it will be fixed.
In the meantime, changing any one of the above factors seems to rectify the issue. As a temporary workaround I would suggest using Windows 7 for this case, until the windows 10 issue is fixed.