Added OMEGA_BLAS_LD_LIBRARY_PATH variable to find libcblas.so

上级 b747a0cb
......@@ -518,6 +518,12 @@ class omega_op(gof.PythonOp):
instantiate.customize.add_header(header)
for lib in self.c_libs():
instantiate.customize.add_library(lib)
#add_library_dir
#print dir(instantiate.customize)
#print instantiate.customize._library_dirs
if os.getenv('OMEGA_BLAS_LD_LIBRARY_PATH'):
instantiate.customize.add_library_dir(os.getenv('OMEGA_BLAS_LD_LIBRARY_PATH'))
mod.add_function(instantiate)
mod.compile(location = _compile_dir())
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论