Skip to content

Error in makefile #4

@alexvillarroel

Description

@alexvillarroel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions