Skip to content

Commit

Permalink
Use recent tensorflow linking mechanism
Browse files Browse the repository at this point in the history
Current code needs master to run properly.
  • Loading branch information
sjperkins committed Oct 25, 2017
1 parent 24c9b47 commit c72ec25
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions install/tensorflow_ops_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,14 @@ def create_tensorflow_extension(nvcc_settings, device_info):
optimise_opt = '-O2'

# Include directories
tf_inc = tf.sysconfig.get_include()
include_dirs = [os.path.join('montblanc', 'include'), source_path]
include_dirs += [tf.sysconfig.get_include()]
include_dirs += [tf_inc, os.path.join(tf_inc, "external", "nsync", "public")]

# Libraries
library_dirs = []
libraries = []
tf_lib = tf.sysconfig.get_lib()
library_dirs = [tf_lib]
libraries = ["tensorflow_framework"]
extra_link_args = ['-fPIC', '-fopenmp', debug_opt]

# Macros
Expand Down

0 comments on commit c72ec25

Please sign in to comment.