/usr/bin/ld: build/temp.linux-x86_64-3.8/cuda/src/gridding_gpu.o: in function `compute_index(int, int, int, int, int)':
tmpxft_003a9dfe_00000000-5_gridding_gpu.cudafe1.cpp:(.text+0x180): multiple definition of `compute_index(int, int, int, int, int)'; build/temp.linux-x86_64-3.8/cuda/src/gridding_reverse_gpu.o:tmpxft_003a9d70_00000000-5_gridding_reverse_gpu.cudafe1.cpp:(.text+0x180): first defined here
However, other functions (e.g., compute_weights, get_n_threads) do not have the same issue.
I tried to put it into a header file (*.h) and include it in gridding_gpu.cu and gridding_reverse_gpu.cu. But the problem still exists.
Can you help me to solve this problem?
Hi, @nicolas-chaulet
The compiler says:
However, other functions (e.g., compute_weights, get_n_threads) do not have the same issue. I tried to put it into a header file (
*.h
) and include it ingridding_gpu.cu
andgridding_reverse_gpu.cu
. But the problem still exists. Can you help me to solve this problem?