Skip to content
Snippets Groups Projects
Commit 4dd02027 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Always set -arch=sm_35

parent 5e48120e
Branches colab
No related merge requests found
Pipeline #18207 failed with stage
in 1 minute and 47 seconds
......@@ -2,11 +2,11 @@
import glob
import os.path
import pystencils_autodiff.tensorflow_jit
import tensorflow as tf
from pkg_resources import DistributionNotFound, get_distribution
import pyronn_layers
import pystencils_autodiff.tensorflow_jit
try:
# Change here if project is renamed and does not equal the package name
......@@ -28,7 +28,7 @@ assert _pyronn_layers_sources, "Could not find the source files of PYRO-NN-Layer
_pyronn_layers_module_file = pystencils_autodiff.tensorflow_jit.compile_sources_and_load(
[],
_pyronn_layers_sources,
additional_compile_flags=['-I' + _pyronn_layers_dir, '-DGOOGLE_CUDA'],
additional_compile_flags=['-I' + _pyronn_layers_dir, '-DGOOGLE_CUDA', '-arch=sm_35'],
compile_only=True) # TODO: msvc! \D
_pyronn_layers_module = tf.load_op_library(_pyronn_layers_module_file)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment