Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openmp doesn't seem to work on Windows #159

Open
moorepants opened this issue May 20, 2024 · 1 comment
Open

openmp doesn't seem to work on Windows #159

moorepants opened this issue May 20, 2024 · 1 comment
Labels

Comments

@moorepants
Copy link
Member

From a CI run in #158:

Run conda install openmp pydy
Channels:
 - conda-forge
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: C:\Users\runneradmin\miniconda3\envs\opty-dev

  added / updated specs:
    - openmp
    - pydy


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    pydy-0.7.1                 |   py38haa244fe_2         4.9 MB  conda-forge
    pywin32-306                |   py38hd3f51b4_2         5.6 MB  conda-forge
    ------------------------------------------------------------
                                           Total:        10.5 MB

The following NEW packages will be INSTALLED:

  pydy               conda-forge/win-64::pydy-0.7.1-py38haa244fe_2 
  pywin32            conda-forge/win-64::pywin32-306-py38hd3f51b4_2 



Downloading and Extracting Packages: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
test.c
Time for non-parallel: 12.008871599999999
Time for parallelized: 11.966323799999998
@moorepants
Copy link
Member Author

I fixed the flag in e9728f9 and the compilation seems to work, but no speed up.

Run python examples/parallel_example.py
test.c
Time for non-parallel: 12.084284799999978
Time for parallelized: 11.949921199999949

@moorepants moorepants added the bug label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant