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

make error: undefined reference to `numa_available' #4

Closed
HaonanJi opened this issue Jun 29, 2022 · 0 comments
Closed

make error: undefined reference to `numa_available' #4

HaonanJi opened this issue Jun 29, 2022 · 0 comments

Comments

@HaonanJi
Copy link

Environment: a6000 sm_86 compute_86 cuda-11.4 cmake-3.21

I run cmake in the above environment to generate Makefile, and then compile to 100% and report the following error:

[100%] Linking CUDA executable main
/usr/bin/ld: CMakeFiles/main.dir/src/main.cu.o: in function main': tmpxft_00001bbf_00000000-6_main.cudafe1.cpp:(.text.startup+0x89): undefined reference to numa_available'
/usr/bin/ld: CMakeFiles/main.dir/src/main.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bbf_00000000-6_main.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_39_tmpxft_00001bbf_00000000_7_main_cpp1_ii_e5dcc531'
/usr/bin/ld: CMakeFiles/main.dir/src/createTable.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bbe_00000000-6_createTable.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_46_tmpxft_00001bbe_00000000_7_createTable_cpp1_ii_2c7b7194'
/usr/bin/ld: CMakeFiles/main.dir/src/kernel.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bc1_00000000-6_kernel.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_41_tmpxft_00001bc1_00000000_7_kernel_cpp1_ii_cf9bc54e'
/usr/bin/ld: CMakeFiles/main.dir/src/offline_sample.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bc5_00000000-6_offline_sample.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_49_tmpxft_00001bc5_00000000_7_offline_sample_cpp1_ii_59198100'
/usr/bin/ld: CMakeFiles/main.dir/src/offline_walk.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bd1_00000000-6_offline_walk.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_47_tmpxft_00001bd1_00000000_7_offline_walk_cpp1_ii_e25a035c'
/usr/bin/ld: CMakeFiles/main.dir/src/online_sample.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bc7_00000000-6_online_sample.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_48_tmpxft_00001bc7_00000000_7_online_sample_cpp1_ii_34041b1a'
/usr/bin/ld: CMakeFiles/main.dir/src/online_sample_twc.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bc8_00000000-6_online_sample_twc.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_52_tmpxft_00001bc8_00000000_7_online_sample_twc_cpp1_ii_ec71d44a'
/usr/bin/ld: CMakeFiles/main.dir/src/online_walk.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bd3_00000000-6_online_walk.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_46_tmpxft_00001bd3_00000000_7_online_walk_cpp1_ii_19367712'
/usr/bin/ld: CMakeFiles/main.dir/src/online_walk_gmem.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001be0_00000000-6_online_walk_gmem.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_51_tmpxft_00001be0_00000000_7_online_walk_gmem_cpp1_ii_3ec071a1'
/usr/bin/ld: CMakeFiles/main.dir/src/unbiased_sample.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bc9_00000000-6_unbiased_sample.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_50_tmpxft_00001bc9_00000000_7_unbiased_sample_cpp1_ii_133c49ba'
/usr/bin/ld: CMakeFiles/main.dir/src/unbiased_walk.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bcd_00000000-6_unbiased_walk.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_48_tmpxft_00001bcd_00000000_7_unbiased_walk_cpp1_ii_cb9b7283'
/usr/bin/ld: CMakeFiles/main.dir/src/util.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bcf_00000000-6_util.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_39_tmpxft_00001bcf_00000000_7_util_cpp1_ii_c8e72f95'
/usr/bin/ld: CMakeFiles/main.dir/src/vec.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001bd5_00000000-6_vec.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_38_tmpxft_00001bd5_00000000_7_vec_cpp1_ii_b6d45b4d_7408'
/usr/bin/ld: CMakeFiles/main.dir/src/api/bias_static.cu.o: in function __sti____cudaRegisterAll()': tmpxft_00001be6_00000000-6_bias_static.cudafe1.cpp:(.text.startup+0x21): undefined reference to __cudaRegisterLinkedBinary_46_tmpxft_00001be6_00000000_7_bias_static_cpp1_ii_a8062ca8'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/main.dir/build.make:306: main] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/main.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

What should I do to make it work?

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