cuda simple application working for 32 bit not for 64 bit

可紊 提交于 2019-12-20 05:00:27

问题


My simple cuda helloworld application runs fine when built in 32 bit using visual studio 2015 community on windows 10. However, if I build it in 64 bit, it is not executed

GPU: Telsa K40c

ToolKit: CUDA 8

Operating System: windows 10 64bit

Visual Studio: community edition.

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 :)");
}

int main() {
welcome << <1, 1 >> > ();
cudaDeviceSynchronize();
return 0;
}

回答1:


I faced the same issue and opened a bug to nvidia #1855074.

They reproduced it successfully and I'm waiting for update on it.

One thing is sure, it's on their side.

The only workaround I found was to put my card in WDDM mode via nvidia-smi, which broke my taskbar.

I recommend to wait for a fix.



来源:https://stackoverflow.com/questions/42349712/cuda-simple-application-working-for-32-bit-not-for-64-bit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!