Closed VanJames closed 10 months ago
Ubuntu Build Faild
go build --tags opencl is OK
go build --tags opencl
go build --tags cuda occurred problems below
go build --tags cuda
obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In functiondecred_cpu_setBlock_52': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x220): undefined reference to cudaMemcpyToSymbol' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x43d): undefined reference tocudaMemcpyToSymbol' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe0f): undefined reference to cudaMemcpyToSymbol' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe41): undefined reference tocudaGetErrorString' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe84): undefined reference to cudaGetErrorString' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe96): undefined reference tocudaGetErrorString' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In function __device_stub__Z21decred_gpu_hash_noncejjPjj(unsigned int, unsigned int, unsigned int*, unsigned int)': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xf4e): undefined reference tocudaPopCallConfiguration' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xfb6): undefined reference to cudaLaunchKernel' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In functiondecred_hash_nonce': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x1025): undefined reference to __cudaPushCallConfiguration' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In functioncudaUnregisterBinaryUtil()': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x8): undefined reference to __cudaUnregisterFatBinary' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In functionsti__cudaRegisterAll()': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x9): undefined reference to __cudaRegisterFatBinary' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x3d): undefined reference tocudaRegisterFunction' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x67): undefined reference to __cudaRegisterVar' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x8f): undefined reference tocudaRegisterVar' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0xb7): undefined reference to __cudaRegisterVar' collect2: error: ld returned 1 exit status
obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In function
cudaMemcpyToSymbol' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x43d): undefined reference to
cudaMemcpyToSymbol' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe41): undefined reference to
cudaGetErrorString' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe96): undefined reference to
__device_stub__Z21decred_gpu_hash_noncejjPjj(unsigned int, unsigned int, unsigned int*, unsigned int)': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xf4e): undefined reference to
cudaLaunchKernel' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In function
__cudaPushCallConfiguration' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In function
__cudaUnregisterFatBinary' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In function
__cudaRegisterFatBinary' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x3d): undefined reference to
__cudaRegisterVar' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x8f): undefined reference to
__cudaRegisterVar' collect2: error: ld returned 1 exit status
i got the same issue on ubuntu18.04, @VanJames are you solved it ?
I build opencl,not use cuda
Ubuntu Build Faild
go build --tags opencl
is OKgo build --tags cuda
occurred problems belowobj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In function
decred_cpu_setBlock_52': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x220): undefined reference tocudaMemcpyToSymbol' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x43d): undefined reference to
cudaMemcpyToSymbol' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe0f): undefined reference tocudaMemcpyToSymbol' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe41): undefined reference to
cudaGetErrorString' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe84): undefined reference tocudaGetErrorString' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xe96): undefined reference to
cudaGetErrorString' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In function__device_stub__Z21decred_gpu_hash_noncejjPjj(unsigned int, unsigned int, unsigned int*, unsigned int)': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xf4e): undefined reference to
cudaPopCallConfiguration' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0xfb6): undefined reference tocudaLaunchKernel' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In function
decred_hash_nonce': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x1025): undefined reference to__cudaPushCallConfiguration' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In function
cudaUnregisterBinaryUtil()': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text+0x8): undefined reference to__cudaUnregisterFatBinary' obj/decred.a(tmpxft_00006b59_00000000-8_decred.o): In function
sti__cudaRegisterAll()': tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x9): undefined reference to__cudaRegisterFatBinary' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x3d): undefined reference to
cudaRegisterFunction' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x67): undefined reference to__cudaRegisterVar' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0x8f): undefined reference to
cudaRegisterVar' tmpxft_00006b59_00000000-5_decred.cudafe1.cpp:(.text.startup+0xb7): undefined reference to__cudaRegisterVar' collect2: error: ld returned 1 exit status