File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ to compile your op into a dynamic library.
354
354
``` bash
355
355
TF_CFLAGS=( $( python -c ' import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))' ) )
356
356
TF_LFLAGS=( $( python -c ' import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))' ) )
357
- g++ -std=c++11 -shared zero_out.cc -o zero_out.so -fPIC ${TF_CFLAGS[@]} ${TF_LFLAGS[@]} -O2
357
+ g++ -std=c++14 -shared zero_out.cc -o zero_out.so -fPIC ${TF_CFLAGS[@]} ${TF_LFLAGS[@]} -O2
358
358
```
359
359
360
360
On macOS, the additional flag "-undefined dynamic_lookup" is required when
@@ -1285,10 +1285,10 @@ and
1285
1285
into a single dynamically loadable library:
1286
1286
1287
1287
```bash
1288
- nvcc -std=c++11 -c -o cuda_op_kernel.cu.o cuda_op_kernel.cu.cc \
1288
+ nvcc -std=c++14 -c -o cuda_op_kernel.cu.o cuda_op_kernel.cu.cc \
1289
1289
${TF_CFLAGS[@]} -D GOOGLE_CUDA=1 -x cu -Xcompiler -fPIC
1290
1290
1291
- g++ -std=c++11 -shared -o cuda_op_kernel.so cuda_op_kernel.cc \
1291
+ g++ -std=c++14 -shared -o cuda_op_kernel.so cuda_op_kernel.cc \
1292
1292
cuda_op_kernel.cu.o ${TF_CFLAGS[@]} -fPIC -lcudart ${TF_LFLAGS[@]}
1293
1293
```
1294
1294
You can’t perform that action at this time.
0 commit comments