Skip to content

Commit

Permalink
Update setup (#235)
Browse files Browse the repository at this point in the history
* Update compiler flag for mac

Tested with macosx-11.0-arm64-3.11

* smt package not found in conda-forge; moved to pip

mamba 1.5.1
conda 23.7.4
  • Loading branch information
ewquon authored Nov 14, 2023
1 parent 701195b commit 6f9de45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ dependencies:
- setuptools
- simpy
- slycot
- smt
- sortedcontainers
- sphinx
- sphinxcontrib-applehelp
Expand All @@ -66,6 +65,7 @@ dependencies:
- dearpygui
- marmot-agents
- osqp
- smt
# Needs to be done outside of environment file:
# - m2w64-toolchain # [win]
# - libpython # [win]
Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ def build_extension(self, ext):
elif (mycompiler.find('ifort') >= 0 or mycompiler.find('icc') >= 0 or
mycompiler.find('icpc') >= 0):
tune = '-xHost'

elif platform.system() == 'Darwin':
# clang doesn't support -march=native
tune = '-mtune=native'

else:
tune = '-march=native -mtune=native'
Expand Down

0 comments on commit 6f9de45

Please sign in to comment.