csu-hmc / opty

A library for using direct collocation in the optimization of dynamic systems.
http://opty.readthedocs.io
Other
86 stars 19 forks source link

openmp does not work on macOsx #161

Open moorepants opened 3 weeks ago

moorepants commented 3 weeks ago

From the arm builds:

Run python examples/parallel_example.py
clang: error: unsupported option '-fopenmp'
/Users/runner/miniconda3/envs/test/lib/python3.10/site-packages/opty/utils.py:572: UserWarning: openmp is not installed or not working properly, request for parallel execution ignored.
  warnings.warn(msg)
Time for non-parallel: 5.751712458000043
Time for parallelized: 5.257540124999991
moorepants commented 3 weeks ago

From intel build:

Run python examples/parallel_example.py
clang: error: unsupported option '-fopenmp'
/Users/runner/miniconda3/envs/test/lib/python3.10/site-packages/opty/utils.py:572: UserWarning: openmp is not installed or not working properly, request for parallel execution ignored.
  warnings.warn(msg)
Time for non-parallel: 7.760400731000118
Time for parallelized: 6.9030550100001165