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

查看:31
本文介绍了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

操作系统:windows 10 64bit

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天全站免登陆