e592afa752693bbad48a79cbdec1922289f528d9,setup.py,,,#,7
Before Change
from Cython.Build import cythonize
import numpy as np
extra_compile_args = ["-fopenmp"]
extra_link_args = ["-fopenmp"]
ext_modules = cythonize("**/*.pyx")
for e in ext_modules:
After Change
extra_link_args = []
// Only compile with OpenMP if user asks for it
USE_OPENMP = os.environ.get("USE_OPENMP", False)
if USE_OPENMP:
extra_compile_args.append("-fopenmp")
extra_link_args.append("-fopenmp")
else:
warnings.warn("Not using OpenMP for parallel parent updates. "
"This will incur a significant performance hit. "
"To compile with OpenMP support, make sure you are "
"using the GNU gcc and g++ compilers and then run "
""export USE_OPENMP=True" before installing.")
ext_modules = cythonize("**/*.pyx")
for e in ext_modules:
e.extra_compile_args.extend(extra_compile_args)
e.extra_link_args.extend(extra_link_args)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: slinderman/pyhawkes
Commit Name: e592afa752693bbad48a79cbdec1922289f528d9
Time: 2017-03-27
Author: scott.linderman@gmail.com
File Name: setup.py
Class Name:
Method Name:
Project Name: ntucllab/libact
Commit Name: 6edc4e4cf3c2ed91ef5d2f57759f53645644628c
Time: 2019-05-05
Author: yangarbiter@gmail.com
File Name: setup.py
Class Name:
Method Name:
Project Name: GPflow/GPflow
Commit Name: 3e8bf1822003feaee9f4ca9e46cc06e4a81d041e
Time: 2020-02-25
Author: dutordoirv@gmail.com
File Name: setup.py
Class Name:
Method Name:
Project Name: slinderman/pyhawkes
Commit Name: e592afa752693bbad48a79cbdec1922289f528d9
Time: 2017-03-27
Author: scott.linderman@gmail.com
File Name: setup.py
Class Name:
Method Name: