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

TVB-2719 Use OpenMP Parallel #49

Merged
merged 2 commits into from Aug 26, 2020
Merged

Conversation

ayan-b
Copy link
Member

@ayan-b ayan-b commented Jul 17, 2020

Closes #10

@ayan-b ayan-b marked this pull request as draft July 17, 2020 16:49
@ayan-b ayan-b marked this pull request as ready for review July 24, 2020 04:34
@ayan-b ayan-b changed the title [WIP] TVB-2719: Use Cython Parallel TVB-2719: Use Cython Parallel Jul 24, 2020
@ayan-b ayan-b self-assigned this Jul 24, 2020
@ayan-b ayan-b changed the title TVB-2719: Use Cython Parallel TVB-2719: Use OpenMP Parallel Jul 29, 2020
@ayan-b ayan-b changed the title TVB-2719: Use OpenMP Parallel TVB-2719 Use OpenMP Parallel Jul 30, 2020
@ayan-b ayan-b force-pushed the parallel branch 2 times, most recently from ce3c1ea to d823715 Compare August 3, 2020 12:54
@ayan-b
Copy link
Member Author

ayan-b commented Aug 3, 2020

Coverage is not working, not sure why. I would try to fix that in a separate PR.

@liadomide liadomide added this to the GSOC2020 milestone Aug 3, 2020
setup.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Aug 3, 2020

Codecov Report

Merging #49 into trunk will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             trunk       #49   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           72        51   -21     
=========================================
- Hits            72        51   -21     
Impacted Files Coverage Δ
gdist.pyx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 59a2b99...56f4da2. Read the comment docs.

* The c++ compiler must have OpenMP installed. This is generally not an issue
on g++ or Microsoft Visual Studio. However, in macOS one may need to install
llvm from brew in order to use OpenMP: ``brew install llvm``. Then, change the
``CC`` and ``CXX`` environment variables to the following:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is happening when openMP is missing? Can we still use tvb-gdist?
Aren't the openMP pragmas simply ignored?

Copy link
Member Author

@ayan-b ayan-b Aug 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are ignored in g++ and MSVC but not in clang++. The compilation will fail in clang++.

@ayan-b ayan-b changed the base branch from trunk to parallel August 26, 2020 04:59
@ayan-b ayan-b merged commit 8fe978c into the-virtual-brain:parallel Aug 26, 2020
@ayan-b ayan-b deleted the parallel branch August 26, 2020 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Cython parallel
2 participants