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

Error: constexpr function return is non-constant #10

Closed
anilsathyan7 opened this issue Dec 22, 2018 · 2 comments
Closed

Error: constexpr function return is non-constant #10

anilsathyan7 opened this issue Dec 22, 2018 · 2 comments

Comments

@anilsathyan7
Copy link

We got the following error when we ran the make command:-

lib/python3.6/site-packages/tensorflow/include/absl/strings/string_view.h(496): error: constexpr function return is non-constant

@anilsathyan7
Copy link
Author

Solved by adding -DNDEBUG in Makefile with nvcc commands.

@anilsathyan7
Copy link
Author

anilsathyan7 commented Dec 24, 2018

It seems to work with cuda-9.0 and tensorflow 1.12 with the following changes

  1. Makefile g++ command : g++ -std=c++11 -shared -o libs/gemm_op.so src/gemm_op.cc -D_GLIBCXX_USE_CXX11_ABI=0 obj/xnor_gemm_kernel.cu.o obj/base_gemm_kernel.cu.o obj/concatenate_kernel.cu.o -I ${TF_INC} -fPIC -lcudart -I ${TF_INC}/external/nsync/public -L ${TF_LIB} -ltensorflow_framework -L ${CUDA_ROOT}/lib64)
  2. In setenv.sh. add : export TF_LIB=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_lib())')

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