nvcc gives this error: constexpr function return is non-constant

I'm getting the following issue when I want to compile my TensorFlow code

/strings/string_view.h(501): error: constexpr function return is non-constant

but when I compile the same code with g++, It works fine. What is the reason for this issue? Where is what I'm using

  • Linux Ubuntu 16.04
  • Python version 3.6.3
  • CUDA/cuDNN version  8.0, 9.1
tensorflowcudanvcc
3 votesJW234.00
1 Answers
JO220.00
3

Have you tried to add -DNDEBUG flag during your compile? It worked for me.

Reply
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?