作者DrStein (交换关联)
看板VideoCard
标题[问题] CUDA 2.1与2.3的差别?
时间Sat Nov 28 01:05:27 2009
※ [本文转录自 C_and_CPP 看板]
作者: DrStein (交换关联) 看板: C_and_CPP
标题: [问题] CUDA 2.1与2.3的差别?
时间: Sat Nov 28 01:05:13 2009
有个程式,在别台电脑是用 CUDA 2.3写
到我电脑(CUDA 2.1)会编不过,确定cuda.RULES已被替换为2.1版了。
错误如下(VC 2005环境, VC compiler)
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xutility(3048):
internal error: assertion failed: gen_expr: bad expr node kind
(D:/Bld/rel/gpgpu/toolkit/r2.1/compiler/edg/EDG_3.9/src/cp_gen_be.c, line
9510)
1>1 catastrophic error detected in the compilation of
"C:\DOCUME~1\DrStein\LOCALS~1\Temp/tmpxft_00002730_00000000-6_test.cpp1.ii".
>C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xutility(3001) : fatal
error C1075: end of file found before the left parenthesis '(' at 'C:\Program
Files\Microsoft Visual Studio 8\VC\INCLUDE\xutility(2999)' was matched
看不懂,嗯 那把compiler换成intel的 直接就是 :
error: A tool returned an error code from "Compiling with CUDA Build Rule..."
所以想问下2.1 与 2.3差别在那?
用到的 header为(只列出CUDA部份):
<cuda_runtime.h>
<cublas.h>
<cuda.h>
<cutil_inline.h>
用到的function 为:
__syncthreads();
cublasInit();
cublasShutdown();
cudaGetErrorString();
还请大师适疑 谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 58.115.136.111
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 58.115.136.111