cuda简单的应用程序适用于32位而不适用于64位 [英] cuda simple application working for 32 bit not for 64 bit

查看:283
本文介绍了cuda简单的应用程序适用于32位而不适用于64位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的简单cuda helloworld应用程序在Windows 10上使用Visual Studio 2015社区构建为32位时运行良好。但是,如果我以64位构建它,则不会执行

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

GPU: Telsa K40c

工具包:CUDA 8

ToolKit: CUDA 8

操作系统:Windows 10 64位

Operating System: windows 10 64bit

Visual Studio:社区版。

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;
}


推荐答案

我遇到了同样的问题,向nvidia打开了一个错误#1855074。

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.

我发现的唯一解决方法是通过nvidia-smi将卡置于WDDM模式,这破坏了我的任务栏。

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

我建议等待修复。

这篇关于cuda简单的应用程序适用于32位而不适用于64位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆