[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Feb 16 13:40:33 PST 2018
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/628dd194da8d/
Changeset: 628dd194da8d
User: pgrete
Date: 2018-02-16 18:45:16+00:00
Summary: Setting fixex number of OMP threads in test function to get around frontend policies.
Affected #: 1 file
diff -r c75b3b80c9d59733349d085fd2d9fba88401761c -r 628dd194da8df7d295207c9891c340f207b481a7 setupext.py
--- a/setupext.py
+++ b/setupext.py
@@ -18,6 +18,7 @@
#include <omp.h>
#include <stdio.h>
int main() {
+ omp_set_num_threads(2);
#pragma omp parallel
printf("nthreads=%d\\n", omp_get_num_threads());
return 0;
@@ -68,15 +69,8 @@
tmp_dir = tempfile.mkdtemp()
start_dir = os.path.abspath('.')
- if os.name == 'nt':
- # TODO: make this work with mingw
- # AFAICS there's no easy way to get the compiler distutils
- # will be using until compilation actually happens
- compile_flag = '-openmp'
- link_flag = ''
- else:
- compile_flag = '-fopenmp'
- link_flag = '-fopenmp'
+ compile_flag = '-fopenmp'
+ link_flag = '-fopenmp'
try:
os.chdir(tmp_dir)
https://bitbucket.org/yt_analysis/yt/commits/09ad0d38a417/
Changeset: 09ad0d38a417
User: pgrete
Date: 2018-02-16 19:37:58+00:00
Summary: Reintroduced Windows openmp flags.
Affected #: 1 file
diff -r 628dd194da8df7d295207c9891c340f207b481a7 -r 09ad0d38a417d2b009822a81428be44d4624ca60 setupext.py
--- a/setupext.py
+++ b/setupext.py
@@ -69,8 +69,15 @@
tmp_dir = tempfile.mkdtemp()
start_dir = os.path.abspath('.')
- compile_flag = '-fopenmp'
- link_flag = '-fopenmp'
+ if os.name == 'nt':
+ # TODO: make this work with mingw
+ # AFAICS there's no easy way to get the compiler distutils
+ # will be using until compilation actually happens
+ compile_flag = '-openmp'
+ link_flag = ''
+ else:
+ compile_flag = '-fopenmp'
+ link_flag = '-fopenmp'
try:
os.chdir(tmp_dir)
https://bitbucket.org/yt_analysis/yt/commits/f6aac88de489/
Changeset: f6aac88de489
User: ngoldbaum
Date: 2018-02-16 21:40:06+00:00
Summary: Merge pull request #1695 from pgrete/openmpfix
Setting fixed # OMP threads in test function to get around frontend policies.
Affected #: 1 file
diff -r c75b3b80c9d59733349d085fd2d9fba88401761c -r f6aac88de489899634f7e6b378c03099e605ce67 setupext.py
--- a/setupext.py
+++ b/setupext.py
@@ -18,6 +18,7 @@
#include <omp.h>
#include <stdio.h>
int main() {
+ omp_set_num_threads(2);
#pragma omp parallel
printf("nthreads=%d\\n", omp_get_num_threads());
return 0;
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list