[問題] CUDA 2.1與2.3的差別?

看板C_and_CPP作者 (交換關聯)時間15年前 (2009/11/27 17:05), 編輯推噓0(004)
留言4則, 2人參與, 最新討論串1/1
有個程式,在別台電腦是用 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 DrStein:轉錄至看板 VideoCard 11/28 01:05

11/28 06:10, , 1F
砍掉重練
11/28 06:10, 1F

11/28 21:43, , 2F
nvcc不管是2.1還是2.3都不能正確的compile std c++的header
11/28 21:43, 2F

11/28 21:45, , 3F
(錯誤訊息裡就寫了nvcc在讀xutility出錯了啊)
11/28 21:45, 3F

11/28 21:46, , 4F
所以應該跟2.1還是2.3沒關係...理論上3.0才能compile c++ code
11/28 21:46, 4F
文章代碼(AID): #1B40RBX- (C_and_CPP)