Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in makefile #4

Open
alexvillarroel opened this issue Sep 13, 2024 · 0 comments
Open

Error in makefile #4

alexvillarroel opened this issue Sep 13, 2024 · 0 comments

Comments

@alexvillarroel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant