[jason@jason-MXP /opt/ConeBeamGpu/src]$
nvcc -O3 -arch=compute_52 -code=compute_52 -Xcompiler -fopenmp -lgomp main.cu -o conebeamgpu -I/home/jason/NVIDIA_CUDA-10.1_Samples/common/inc/
main.cu(175): warning: result of call is not used
main.cu(175): warning: result of call is not used
main.cu: In function ‘void Host(VolumeParameter*, char*, char*)’:
main.cu:244:23: warning: ‘cudaError_t cudaThreadSynchronize()’ is deprecated [-Wdeprecated-declarations]
cudaThreadSynchronize(); /*Block CPU until ALL GPU finish job*/
^
/usr/local/cuda-10.1/bin/../targets/x86_64-linux/include/cuda_runtime_api.h:957:46: note: declared here
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaThreadSynchronize(void);
^~~~~~~~~~~~~~~~~~~~~
main.cu:244:23: warning: ‘cudaError_t cudaThreadSynchronize()’ is deprecated [-Wdeprecated-declarations]
cudaThreadSynchronize(); /*Block CPU until ALL GPU finish job*/
^
/usr/local/cuda-10.1/bin/../targets/x86_64-linux/include/cuda_runtime_api.h:957:46: note: declared here
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaThreadSynchronize(void);
^~~~~~~~~~~~~~~~~~~~~
main.cu:175:6: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(VolPrm->picture.picArray[picture_ID + i], sizeof(float), VolPrm->pixel_num, picFile);
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/tmpxft_000027d5_00000000-9_main.o: in function `main':
tmpxft_000027d5_00000000-5_main.cudafe1.cpp:(.text.startup+0xab): undefined reference to `get_param(VolumeParameter*, char*)'
/usr/bin/ld: tmpxft_000027d5_00000000-5_main.cudafe1.cpp:(.text.startup+0x8bf): undefined reference to `reconstruction(float*, int, int, unsigned long long, PictureParameter)'
/usr/bin/ld: tmpxft_000027d5_00000000-5_main.cudafe1.cpp:(.text.startup+0xadf): undefined reference to `OutputToDisk(VolumeParameter*, int, char*)'
/usr/bin/ld: tmpxft_000027d5_00000000-5_main.cudafe1.cpp:(.text.startup+0xef4): undefined reference to `free_host_mem(VolumeParameter*)'
collect2: error: ld returned 1 exit status