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

nvlink fatal : Could not open input file '/usr/lib/x86_64-linux-gnu/librt.a' #5

Open
anshkumar opened this issue May 28, 2022 · 0 comments

Comments

@anshkumar
Copy link

Hi,
while compiling the repo, I'm getting following error:

nvlink fatal   : Could not open input file '/usr/lib/x86_64-linux-gnu/librt.a'
make[2]: *** [CMakeFiles/ops.dir/build.make:132: CMakeFiles/ops.dir/cmake_device_link.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/ops.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

but if I remove ${CUDA_LIBRARIES} from target_link_libraries in cmake file then I'm able to build it successfully. But while loading the file I'm getting error:

>>> import tensorflow as tf
>>> custom_ops = tf.load_op_library('./libops.so')

Error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/vedanshu/.local/lib/python3.10/site-packages/tensorflow/python/framework/load_library.py", line 54, in load_op_library
    lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: ./libops.so: undefined symbol: _ZNK10tensorflow8OpKernel11TraceStringB5cxx11ERKNS_15OpKernelContextEb

I'm using python3.10.4, gcc 9.4.0 and tensorflow 2.8.0.

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