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

Update CUDA packages to get rid of CUDA errors on CPU and use CUDAapi.has_cuda() #378

Merged
merged 6 commits into from
Aug 29, 2019

Conversation

ali-ramadhan
Copy link
Member

@ali-ramadhan ali-ramadhan commented Aug 28, 2019

Resolves #376
Resolves #295

@ali-ramadhan ali-ramadhan added the cleanup 🧹 Paying off technical debt label Aug 28, 2019
@ali-ramadhan ali-ramadhan added this to the JOSS milestone Aug 28, 2019
@codecov
Copy link

codecov bot commented Aug 28, 2019

Codecov Report

Merging #378 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #378      +/-   ##
==========================================
- Coverage   78.37%   78.32%   -0.06%     
==========================================
  Files          22       22              
  Lines        1244     1241       -3     
==========================================
- Hits          975      972       -3     
  Misses        269      269
Impacted Files Coverage Δ
src/Oceananigans.jl 100% <100%> (ø) ⬆️
src/models.jl 92.68% <100%> (ø) ⬆️

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 8c1c776...3e13ace. Read the comment docs.

@@ -183,8 +183,6 @@ end
end
end

@hascuda CuArrays.allowscalar(false)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can use @allowscalar to only allow it in a certain location.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah nice, did not know about @allowscalar!

Tried using it from GPUArrays but then noticed we might be performing some scalar operations during model setup so might clean that up in a different PR and finally set allowscalar(false).

@ali-ramadhan ali-ramadhan merged commit c52d0f1 into master Aug 29, 2019
@ali-ramadhan ali-ramadhan deleted the update-cuda-pkgs branch August 29, 2019 11:52
@ali-ramadhan ali-ramadhan added the package 📦 Quite meta label Sep 18, 2019
arcavaliere pushed a commit to arcavaliere/Oceananigans.jl that referenced this pull request Nov 6, 2019
Update CUDA packages to get rid of CUDA errors on CPU and use CUDAapi.has_cuda()

Former-commit-id: c52d0f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup 🧹 Paying off technical debt package 📦 Quite meta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch from HAVE_CUDA to new CUDAapi.has_cuda() Clearer Model instantiation error when HAVE_CUDA=false
2 participants