CUDA5.0 的cdpAdvancedQuicksort 的例子是不是只能在windows环境下编译运行?
[root@gpu cdpAdvancedQuicksort]# nvcc cdpAdvancedQuicksort.cu
cdpAdvancedQuicksort.cu(145): error: identifier “__ballot” is undefined
cdpAdvancedQuicksort.cu(160): error: identifier “atomicAdd” is undefined
cdpAdvancedQuicksort.cu(162): error: identifier “atomicAdd” is undefined
cdpAdvancedQuicksort.cu(165): error: identifier “__shfl” is undefined
cdpAdvancedQuicksort.cu(190): error: identifier “atomicAdd” is undefined
cdpAdvancedQuicksort.cu(223): error: calling a global function(“big_bitonicsort”) from a global function(“qsort_warp”) is only allowed on the compute_35 architecture or above
cdpAdvancedQuicksort.cu(234): error: calling a global function(“qsort_warp”) from a global function(“qsort_warp”) is only allowed on the compute_35 architecture or above
cdpAdvancedQuicksort.cu(244): error: calling a global function(“bitonicsort”) from a global function(“qsort_warp”) is only allowed on the compute_35 architecture or above
cdpAdvancedQuicksort.cu(260): error: calling a global function(“big_bitonicsort”) from a global function(“qsort_warp”) is only allowed on the compute_35 architecture or above
cdpAdvancedQuicksort.cu(270): error: calling a global function(“qsort_warp”) from a global function(“qsort_warp”) is only allowed on the compute_35 architecture or above
cdpAdvancedQuicksort.cu(277): error: calling a global function(“bitonicsort”) from a global function(“qsort_warp”) is only allowed on the compute_35 architecture or above
cdpAdvancedQuicksort.cu(86): error: identifier “atomicAdd” is undefined
cdpAdvancedQuicksort.cu(87): error: identifier “atomicMax” is undefined
cdpAdvancedQuicksort.cu(66): error: identifier “atomicAdd” is undefined
14 errors detected in the compilation of “/tmp/tmpxft_00002ef2_00000000-6_cdpAdvancedQuicksort.cpp1.ii”.
上边使用nvcc
下边是makfile的结果
[root@gpu cdpAdvancedQuicksort]# ./Makefile
./Makefile: line 37: OSUPPER: command not found
./Makefile: line 38: OSLOWER: command not found
./Makefile: line 41: shell: command not found
./Makefile: line 41: OS_SIZE: command not found
./Makefile: line 42: shell: command not found
./Makefile: line 42: OS_ARCH: command not found
./Makefile: line 45: syntax error near unexpected token $(i386),1' ./Makefile: line 45:
ifeq ($(i386),1)’