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

Add device detector #26

Merged
merged 2 commits into from
Oct 19, 2023
Merged

Add device detector #26

merged 2 commits into from
Oct 19, 2023

Conversation

ArrogantGao
Copy link
Collaborator

@ArrogantGao ArrogantGao commented Oct 19, 2023

I found that the Julia register server do not have cuda device, while the init function we used need to call CUDA.driver_version(). This leads to error.
I added a device detector using CUDA.functional() to check is there any CUDA device to use, if no, it will output a warning message.

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Merging #26 (62f24b1) into main (b4b08d3) will decrease coverage by 8.80%.
Report is 1 commits behind head on main.
The diff coverage is 57.14%.

@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
- Coverage   96.29%   87.50%   -8.80%     
==========================================
  Files           2        2              
  Lines          27       32       +5     
==========================================
+ Hits           26       28       +2     
- Misses          1        4       +3     
Files Coverage Δ
src/tropical_gemms.jl 95.45% <ø> (ø)
src/CuTropicalGEMM.jl 70.00% <57.14%> (-30.00%) ⬇️

@ArrogantGao ArrogantGao merged commit dfa895f into main Oct 19, 2023
@GiggleLiu
Copy link
Member

Looks great!

@ArrogantGao
Copy link
Collaborator Author

Thanks, I resubmitted the application of registration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants