Skip to content

getDTthreads more robust#2708

Merged
mattdowle merged 3 commits intomasterfrom
getDTthread
Mar 28, 2018
Merged

getDTthreads more robust#2708
mattdowle merged 3 commits intomasterfrom
getDTthread

Conversation

@mattdowle
Copy link
Copy Markdown
Member

@mattdowle mattdowle commented Mar 28, 2018

Attempt 1 for #2707

If user calls setDTthread(0) it was calling omp_set_num_threads() to omp_get_thread_limit() which was INT_MAX by default. Relatively new fsort was using DTthreads without restriction, whereas usage elsewhere was typically limiting number of threads based on chunk size or similar.
All usage of omp_set.* removed and the grep in CRAN_Release.cmd expanded to include openmp-utils.c, too.

@mattdowle mattdowle added this to the v1.10.6 milestone Mar 28, 2018
@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 28, 2018

Codecov Report

Merging #2708 into master will decrease coverage by <.01%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2708      +/-   ##
==========================================
- Coverage   93.33%   93.32%   -0.01%     
==========================================
  Files          61       61              
  Lines       12220    12225       +5     
==========================================
+ Hits        11405    11409       +4     
- Misses        815      816       +1
Impacted Files Coverage Δ
R/openmp-utils.R 100% <100%> (ø) ⬆️
src/openmp-utils.c 88.88% <84.61%> (-2.03%) ⬇️

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 f607162...c387fce. Read the comment docs.

@mattdowle mattdowle merged commit 437646f into master Mar 28, 2018
@mattdowle mattdowle deleted the getDTthread branch March 28, 2018 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants