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

Okina memory manager segfault fix #731

Merged
merged 5 commits into from
Jan 25, 2019
Merged

Okina memory manager segfault fix #731

merged 5 commits into from
Jan 25, 2019

Conversation

artv3
Copy link
Contributor

@artv3 artv3 commented Jan 25, 2019

Addresses issue #730 . By default, config.hpp sets
int ngpu = -1;
but we have the following method
static inline bool gpuDisabled() { return Get().ngpu == 0; } which will return false if ngpu doesn't get overwritten to 0. A possible fix is to change the gpuDisabled criteria to
static inline bool gpuDisabled() { return Get().ngpu < 0; }

@artv3 artv3 requested review from jdahm and camierjs January 25, 2019 01:43
general/config.hpp Outdated Show resolved Hide resolved
general/mm.cpp Outdated Show resolved Hide resolved
@camierjs camierjs added this to Review Now in Pull Requests via automation Jan 25, 2019
@camierjs camierjs added this to the mfem-4.0 milestone Jan 25, 2019
@jdahm
Copy link
Contributor

jdahm commented Jan 25, 2019

This looks good 👍

@artv3 artv3 merged commit 258e7a2 into okina Jan 25, 2019
Pull Requests automation moved this from Review Now to Merged Jan 25, 2019
@artv3 artv3 deleted the artv3/okina-gpu-fix branch January 25, 2019 23:54
jonwong12 pushed a commit that referenced this pull request May 13, 2019
Okina memory manager segfault fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Pull Requests
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

3 participants