--expt-relaxed-constexpr is a convenient way to reuse existing constexpr host code, e.g., things like std::max. However, it can lead to some pretty surprising behavior. Consider: constexpr int bar(int j){ if(j<0){ throw; } return 42; } __global__ void kernel(int * i){ *i...
local_linux-opt/bin/tensorflow/core/kernels/_objs/resize_nearest_neighbor_op_gpu/tensorflow/core/kernels/resize_nearest_neighbor_op_gpu.cu.pic.d (No such file or directory). nvcc fatal : Unknown option '-expt-relaxed-constexpr' Target //tensorflow/tools/pip_package:build_pip_package failed ...
/home/irondroid/anaconda2/lib/python2.7/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/MathFunctions.h(1052): warning: calling a constexprhostfunction("real") from ahostdevicefunction("abs") is not allowed. The experimental flag '--expt-relaxed-constexpr' ...