GPU-comcot icon indicating copy to clipboard operation
GPU-comcot copied to clipboard

Error in makefile

Open alexvillarroel opened this issue 1 year ago • 0 comments

Hi, thanks by the GPU support, i'm presenting a trouble when i install with make, nvcc -g -arch=sm_61 -lineinfo --device-link GPUcomcot.o GPUall_grids.o GPUMass_s.o GPUMoment_s.o GPUOpen_BD.o GPUOutput.o -o nvobj.o gfortran -g -cpp -lstdc++ -O2 comcot.o initialization.o output.o deform.o mass.o moment.o boundaries.o all_grids.o hotstart.o landslide.o wavemaker.o dispersion.o type_module.o -L/usr/local/cuda-9.2/lib64 -lcudart GPUcomcot.o GPUall_grids.o GPUMass_s.o GPUMoment_s.o GPUOpen_BD.o GPUOutput.o nvobj.o -o comcot GPUcomcot.o: In function cuda_alloc_layer': /root/GPU-comcot/GPUcomcot.cu:50: undefined reference to cudaGetLastError' /root/GPU-comcot/GPUcomcot.cu:50: undefined reference to cudaGetErrorString' /root/GPU-comcot/GPUcomcot.cu:70: undefined reference to cudaGetLastError' /root/GPU-comcot/GPUcomcot.cu:70: undefined reference to `cudaGetErrorString'

and more output with the same issues

The libraries of cuda in the makefile are good. I tried with ubuntu 22.04 and 16.04 and i've the same results

Any help I would be grateful, thank you

alexvillarroel avatar Sep 13 '24 17:09 alexvillarroel