Information about error compiling with CUDA

From: Martin, Erik W (Erik.Martin_at_stjude.org)
Date: Fri Nov 09 2012 - 14:50:44 CST

Here is some more information about the errors I'm getting. I've never compiled from source before with CUDA, so don't really know what is happening here. I didn't do anything questionable. I ran only the commands in the documentation.

g++ -m64 -O3 -I.rootdir/charm-6.4.0/multicore-linux64/include -DCMK_OPTIMIZE=1 -Isrc -Iinc -Iplugins/include -DSTATIC_PLUGIN -I.rootdir/tcl-threaded/include -DNAMD_TCL -I.rootdir/fftw/include -DNAMD_FFTW -DNAMD_CUDA -I. -I/usr/local/encap/cuda-4.0/include -DNAMD_VERSION=\"2.9\" -DNAMD_PLATFORM=\"Linux-x86_64-multicore-CUDA\" -DREMOVE_PROXYRESULTMSG_EXTRACOPY -DNODEAWARE_PROXY_SPANNINGTREE -DUSE_NODEPATCHMGR -fexpensive-optimizations -ffast-math -o obj/ComputeNonbondedCUDA.o -c src/ComputeNonbondedCUDA.C
src/ComputeNonbondedCUDA.C:6:26: error: cuda_runtime.h: No such file or directory
src/ComputeNonbondedCUDA.C:7:18: error: cuda.h: No such file or directory
In file included from src/ComputeNonbondedCUDA.C:14:
src/ComputeNonbondedCUDAKernel.h:8:17: warning: extra tokens at end of #undef directive
In file included from src/ComputeNonbondedCUDA.C:14:
src/ComputeNonbondedCUDAKernel.h:16: error: field ‘offset’ has incomplete type
src/ComputeNonbondedCUDAKernel.h:46: error: ‘float3’ does not name a type
src/ComputeNonbondedCUDAKernel.h:89: error: ISO C++ forbids declaration of ‘float2’ with no type
src/ComputeNonbondedCUDAKernel.h:89: error: expected ‘,’ or ‘...’ before ‘*’ token
src/ComputeNonbondedCUDAKernel.h:114: error: variable or field ‘cuda_nonbonded_forces’ declared void
src/ComputeNonbondedCUDAKernel.h:114: error: ‘float3’ was not declared in this scope
src/ComputeNonbondedCUDAKernel.h:114: error: ‘float3’ was not declared in this scope
src/ComputeNonbondedCUDAKernel.h:114: error: ‘float3’ was not declared in this scope
src/ComputeNonbondedCUDAKernel.h:115: error: expected primary-expression before ‘float’
src/ComputeNonbondedCUDAKernel.h:115: error: expected primary-expression before ‘float’
src/ComputeNonbondedCUDAKernel.h:116: error: expected primary-expression before ‘int’
src/ComputeNonbondedCUDAKernel.h:116: error: expected primary-expression before ‘int’
src/ComputeNonbondedCUDAKernel.h:116: error: expected primary-expression before ‘int’
src/ComputeNonbondedCUDAKernel.h:116: error: expected primary-expression before ‘int’
src/ComputeNonbondedCUDAKernel.h:117: error: expected primary-expression before ‘int’
src/ComputeNonbondedCUDAKernel.h:117: error: expected primary-expression before ‘int’
src/ComputeNonbondedCUDAKernel.h:117: error: expected primary-expression before ‘int’
src/ComputeNonbondedCUDAKernel.h:117: error: expected primary-expression before ‘int’
src/ComputeNonbondedCUDAKernel.h:118: error: ‘cudaStream_t’ was not declared in this scope
src/ComputeNonbondedCUDAKernel.h:118: error: ‘strm’ was not declared in this scope
src/ComputeNonbondedCUDAKernel.h:128: error: ‘float3’ has not been declared
src/ComputeNonbondedCUDAKernel.h:129: error: ‘float3’ has not been declared
src/ComputeNonbondedCUDAKernel.h:130: error: ‘float3’ has not been declared
src/ComputeNonbondedCUDAKernel.h:131: error: ‘cudaStream_t’ has not been declared
src/ComputeNonbondedCUDAKernel.h:145: error: ‘float3’ has not been declared
src/ComputeNonbondedCUDAKernel.h:146: error: ‘float3’ has not been declared
src/ComputeNonbondedCUDAKernel.h:147: error: ‘float3’ has not been declared
src/ComputeNonbondedCUDAKernel.h:150: error: ‘cudaStream_t’ has not been declared
src/ComputeNonbondedCUDAKernel.h:160: error: ‘float3’ has not been declared
src/ComputeNonbondedCUDAKernel.h:161: error: ‘float3’ has not been declared
src/ComputeNonbondedCUDAKernel.h:162: error: ‘float3’ has not been declared
src/ComputeNonbondedCUDAKernel.h:163: error: ‘cudaStream_t’ has not been declared
src/ComputeNonbondedCUDA.C:31: error: ‘cudaStream_t’ does not name a type
src/ComputeNonbondedCUDA.C:32: error: ‘cudaStream_t’ does not name a type
src/ComputeNonbondedCUDA.C: In function ‘void cuda_errcheck(const char*)’:
src/ComputeNonbondedCUDA.C:35: error: ‘cudaError_t’ was not declared in this scope
src/ComputeNonbondedCUDA.C:35: error: expected ‘;’ before ‘err’
src/ComputeNonbondedCUDA.C:36: error: ‘err’ was not declared in this scope
src/ComputeNonbondedCUDA.C:36: error: ‘cudaGetLastError’ was not declared in this scope
src/ComputeNonbondedCUDA.C:36: error: ‘cudaSuccess’ was not declared in this scope
src/ComputeNonbondedCUDA.C:45: error: ‘cudaGetDevice’ was not declared in this scope
src/ComputeNonbondedCUDA.C:49: error: ‘cudaGetErrorString’ was not declared in this scope
src/ComputeNonbondedCUDA.C: In function ‘void cuda_die(const char*)’:
src/ComputeNonbondedCUDA.C:63: error: ‘cudaGetDevice’ was not declared in this scope
src/ComputeNonbondedCUDA.C:63: error: ‘cudaSuccess’ was not declared in this scope
src/ComputeNonbondedCUDA.C: In function ‘void cuda_initialize()’:
src/ComputeNonbondedCUDA.C:194: error: ‘cudaGetDeviceCount’ was not declared in this scope
src/ComputeNonbondedCUDA.C:304: error: ‘cudaError_t’ was not declared in this scope
src/ComputeNonbondedCUDA.C:304: error: expected ‘;’ before ‘err’
src/ComputeNonbondedCUDA.C:305: error: ‘cudaDeviceProp’ was not declared in this scope
src/ComputeNonbondedCUDA.C:305: error: expected ‘;’ before ‘deviceProp’
src/ComputeNonbondedCUDA.C:306: error: ‘err’ was not declared in this scope
src/ComputeNonbondedCUDA.C:306: error: ‘deviceProp’ was not declared in this scope
src/ComputeNonbondedCUDA.C:306: error: ‘cudaGetDeviceProperties’ was not declared in this scope
src/ComputeNonbondedCUDA.C:307: error: ‘cudaSuccess’ was not declared in this scope
src/ComputeNonbondedCUDA.C:313: error: ‘cudaSetDevice’ was not declared in this scope
src/ComputeNonbondedCUDA.C:315: error: ‘cudaSuccess’ was not declared in this scope
src/ComputeNonbondedCUDA.C:318: error: ‘cudaGetErrorString’ was not declared in this scope
src/ComputeNonbondedCUDA.C:324: error: ‘cudaDeviceMapHost’ was not declared in this scope
src/ComputeNonbondedCUDA.C:324: error: ‘cudaSetDeviceFlags’ was not declared in this scope
src/ComputeNonbondedCUDA.C:328: error: ‘cudaGetDevice’ was not declared in this scope
src/ComputeNonbondedCUDA.C:328: error: ‘cudaSuccess’ was not declared in this scope
src/ComputeNonbondedCUDA.C:329: error: ‘cudaDeviceProp’ was not declared in this scope
src/ComputeNonbondedCUDA.C:329: error: expected ‘;’ before ‘deviceProp’
src/ComputeNonbondedCUDA.C:330: error: ‘deviceProp’ was not declared in this scope
src/ComputeNonbondedCUDA.C:330: error: ‘cudaGetDeviceProperties’ was not declared in this scope
src/ComputeNonbondedCUDA.C:332: error: ‘cudaComputeModeProhibited’ was not declared in this scope
src/ComputeNonbondedCUDA.C: In static member function ‘static void ComputeNonbondedCUDA::build_lj_table()’:
src/ComputeNonbondedCUDA.C:369: error: ‘float2’ was not declared in this scope
src/ComputeNonbondedCUDA.C:369: error: ‘t’ was not declared in this scope
src/ComputeNonbondedCUDA.C:369: error: expected type-specifier before ‘float2’
src/ComputeNonbondedCUDA.C:369: error: expected ‘;’ before ‘float2’
src/ComputeNonbondedCUDA.C:370: error: ‘row’ was not declared in this scope
src/ComputeNonbondedCUDA.C:380: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
src/ComputeNonbondedCUDA.C: In static member function ‘static void ComputeNonbondedCUDA::build_force_table()’:
src/ComputeNonbondedCUDA.C:389: error: elements of array ‘float4 t [4096]’ have incomplete type
src/ComputeNonbondedCUDA.C:389: error: storage size of ‘t’ isn't known
src/ComputeNonbondedCUDA.C:390: error: elements of array ‘float4 et [4096]’ have incomplete type
src/ComputeNonbondedCUDA.C:390: error: storage size of ‘et’ isn't known
src/ComputeNonbondedCUDA.C: At global scope:
src/ComputeNonbondedCUDA.C:525: error: expected initializer before ‘*’ token
src/ComputeNonbondedCUDA.C: In member function ‘void ComputeNonbondedCUDA::build_exclusions()’:
src/ComputeNonbondedCUDA.C:536: error: ‘exclusionsByAtom’ was not declared in this scope
src/ComputeNonbondedCUDA.C:536: error: expected type-specifier before ‘int2’
src/ComputeNonbondedCUDA.C:536: error: expected ‘;’ before ‘int2’
src/ComputeNonbondedCUDA.C: At global scope:
src/ComputeNonbondedCUDA.C:707: error: ‘cudaEvent_t’ does not name a type
src/ComputeNonbondedCUDA.C:708: error: ‘cudaEvent_t’ does not name a type
src/ComputeNonbondedCUDA.C:709: error: ‘cudaEvent_t’ does not name a type
src/ComputeNonbondedCUDA.C: In constructor ‘ComputeNonbondedCUDA::ComputeNonbondedCUDA(ComputeID, ComputeMgr*, ComputeNonbondedCUDA*, int)’:
src/ComputeNonbondedCUDA.C:757: error: ‘start_calc’ was not declared in this scope
src/ComputeNonbondedCUDA.C:757: error: ‘cudaEventDisableTiming’ was not declared in this scope
src/ComputeNonbondedCUDA.C:757: error: ‘cudaEventCreateWithFlags’ was not declared in this scope
src/ComputeNonbondedCUDA.C:758: error: ‘end_remote_download’ was not declared in this scope
src/ComputeNonbondedCUDA.C:759: error: ‘end_local_download’ was not declared in this scope
src/ComputeNonbondedCUDA.C: In function ‘void cuda_check_remote_progress(void*, double)’:
src/ComputeNonbondedCUDA.C:1026: error: ‘cudaError_t’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1026: error: expected ‘;’ before ‘err’
src/ComputeNonbondedCUDA.C:1027: error: ‘err’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1027: error: ‘cudaSuccess’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1029: error: ‘cudaGetDevice’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1032: error: ‘cudaErrorNotReady’ was not declared in this scope
src/ComputeNonbondedCUDA.C: In function ‘void cuda_check_local_progress(void*, double)’:
src/ComputeNonbondedCUDA.C:1051: error: ‘cudaError_t’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1051: error: expected ‘;’ before ‘err’
src/ComputeNonbondedCUDA.C:1052: error: ‘err’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1052: error: ‘cudaSuccess’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1054: error: ‘cudaGetDevice’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1058: error: ‘cudaErrorNotReady’ was not declared in this scope
src/ComputeNonbondedCUDA.C: In member function ‘virtual void ComputeNonbondedCUDA::doWork()’:
src/ComputeNonbondedCUDA.C:1217: error: ‘cudaFreeHost’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1222: error: ‘cudaHostAllocMapped’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1222: error: ‘cudaHostAlloc’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1268: error: ‘struct patch_pair’ has no member named ‘offset’
src/ComputeNonbondedCUDA.C:1269: error: ‘struct patch_pair’ has no member named ‘offset’
src/ComputeNonbondedCUDA.C:1270: error: ‘struct patch_pair’ has no member named ‘offset’
src/ComputeNonbondedCUDA.C:1333: error: ‘cudaFreeHost’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1349: error: ‘cudaMallocHost’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1352: error: invalid application of ‘sizeof’ to incomplete type ‘float4’
src/ComputeNonbondedCUDA.C:1352: error: ‘cudaHostAllocMapped’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1352: error: ‘cudaHostAlloc’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1353: error: invalid application of ‘sizeof’ to incomplete type ‘float4’
src/ComputeNonbondedCUDA.C:1410: error: invalid application of ‘sizeof’ to incomplete type ‘float4’
src/ComputeNonbondedCUDA.C:1413: error: invalid application of ‘sizeof’ to incomplete type ‘float4’
src/ComputeNonbondedCUDA.C:1414: error: invalid application of ‘sizeof’ to incomplete type ‘float4’
src/ComputeNonbondedCUDA.C:1478: error: ‘exclusionsByAtom’ was not declared in this scope
src/ComputeNonbondedCUDA.C: In function ‘void cuda_check_remote_calc(void*, double)’:
src/ComputeNonbondedCUDA.C:1641: error: ‘end_remote_download’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1641: error: ‘cudaEventQuery’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1641: error: ‘cudaSuccess’ was not declared in this scope
src/ComputeNonbondedCUDA.C: In function ‘void cuda_check_local_calc(void*, double)’:
src/ComputeNonbondedCUDA.C:1653: error: ‘end_local_download’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1653: error: ‘cudaEventQuery’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1653: error: ‘cudaSuccess’ was not declared in this scope
src/ComputeNonbondedCUDA.C: In member function ‘void ComputeNonbondedCUDA::recvYieldDevice(int)’:
src/ComputeNonbondedCUDA.C:1669: error: ‘float3’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1669: error: expected ‘;’ before ‘lata’
src/ComputeNonbondedCUDA.C:1670: error: ‘lata’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1673: error: ‘latb’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1676: error: ‘latc’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1705: error: ‘start_calc’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1705: error: ‘stream’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1705: error: ‘cudaEventRecord’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1710: error: ‘cuda_nonbonded_forces’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1721: error: ‘end_remote_download’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1736: error: ‘start_calc’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1736: error: ‘stream’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1736: error: ‘cudaEventRecord’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1747: error: ‘end_remote_download’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1753: error: ‘start_calc’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1753: error: ‘stream’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1753: error: ‘cudaEventRecord’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1763: error: ‘end_remote_download’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1786: error: ‘stream’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1786: error: ‘cuda_nonbonded_forces’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1798: error: ‘end_local_download’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1798: error: ‘cudaEventRecord’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1825: error: ‘stream’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1827: error: ‘end_local_download’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1827: error: ‘cudaEventRecord’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1840: error: ‘stream’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1842: error: ‘end_local_download’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1842: error: ‘stream’ was not declared in this scope
src/ComputeNonbondedCUDA.C:1842: error: ‘cudaEventRecord’ was not declared in this scope
src/ComputeNonbondedCUDA.C: In member function ‘int ComputeNonbondedCUDA::finishWork()’:
src/ComputeNonbondedCUDA.C:1907: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1908: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1912: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1912: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1913: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1913: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1914: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1914: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1918: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1918: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1919: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1919: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1920: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1920: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1936: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1936: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1938: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
src/ComputeNonbondedCUDA.C:1938: error: invalid use of incomplete type ‘struct float4’
src/ComputeNonbondedCUDA.h:8: error: forward declaration of ‘struct float4’
make: *** [obj/ComputeNonbondedCUDA.o] Error 1

________________________________
Email Disclaimer: www.stjude.org/emaildisclaimer
Consultation Disclaimer: www.stjude.org/consultationdisclaimer

This archive was generated by hypermail 2.1.6 : Tue Dec 31 2013 - 23:22:44 CST