Skip to content

Commit

Permalink
Tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
ifilot committed Dec 7, 2023
1 parent f5c89d6 commit 4d36d97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 0 additions & 4 deletions pyqint/integrals.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
#include <vector>
#include <array>

#if defined(__GNUG__) || defined(_MSC_VER)
#include <omp.h>
#endif

#include "gamma.h"
#include "cgf.h"
#include "factorials.h"
Expand Down
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,15 @@ def find_windows_versions():
os.environ['PATH'] = ";".join(newpaths)

# specify compilation instructions for other platforms
if os.name == 'posix':
if os.name == 'posix' and sys.platform != 'darwin':
extra_compile_args = ["-Wno-date-time", "-fopenmp", "-fPIC"]
extra_link_args = ["-fopenmp"]
else:
elif os.name == 'nt':
extra_compile_args = ["/openmp"]
extra_link_args = []
elif sys.platform == 'darwin':
extra_compile_args = ["-Wno-date-time", "-fPIC", "-std=c++14"]
extra_link_args = []

ext_modules = [
Extension(
Expand Down

0 comments on commit 4d36d97

Please sign in to comment.