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

Gpu widget new branch #380

Merged
merged 114 commits into from Dec 19, 2021
Merged

Conversation

dcmvdbekerom
Copy link
Member

@dcmvdbekerom dcmvdbekerom commented Oct 18, 2021

Update of the old GPU widget over at #274.

It is back in a working state after some merging issues, so we can now pick it up where we left off.

cupy already caches the compiled CUDA code so we don't have to take care of this ourselves
- Block allocation is now trivial, so prepare_blocks() is no longer needed.
- Since iso is copied to device, log_2vMm can be calculated on device.
- Reduced iso from int32 to int8.
This means that there is only one place where the physics is described, which can be used both by GPU and CPU code.
cpu/gpu agnostic code now working!
@erwanp erwanp added this to the 0.11.1 milestone Nov 14, 2021
@erwanp
Copy link
Member

erwanp commented Nov 14, 2021

@dcmvdbekerom I'm delaying this for the next minor versino, which will be within days / 15 days at most, given the expected minor Doc updates / compat with Radis-App and Radis-Lab

@erwanp erwanp modified the milestones: 0.11.1, 0.12 Nov 27, 2021

sf.fetch_databank("hitemp")

s = sf.eq_spectrum_gpu_explore(
Copy link
Member

Choose a reason for hiding this comment

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

@dcmvdbekerom test fails because this should now be :

Suggested change
s = sf.eq_spectrum_gpu_explore(
s = sf.eq_spectrum_gpu_interactive(

@erwanp
Copy link
Member

erwanp commented Dec 18, 2021

@dcmvdbekerom good to merge ? We could release it in 0.12

@erwanp erwanp modified the milestones: 0.13, 0.12 Dec 18, 2021
@dcmvdbekerom
Copy link
Member Author

I'll work on it tomorrow, I think it should be ready by then!

@dcmvdbekerom
Copy link
Member Author

There's a problem with the pressure slider; the keyword is pressure, but internally the value pressure_mbar is used. Can't we just use pressure everywhere?

@erwanp
Copy link
Member

erwanp commented Dec 19, 2021

Pressure should be better (it's an artifact of the very first lines of code of Radis), but renaming it requires to be cautious. We'll do it separately with a dedicated PR. Can you have a workaround in the meantime?

@dcmvdbekerom
Copy link
Member Author

@erwanp I also changed all occurances of DLM to LDM; let's make sure this went well everywhere.
Other than that it's ready to merge once it passes the tests

This reverts commit c18b063f6c82dbaecc7fb674e765fa9a9ac04dc2.

(files got corrupted)
…cs do not have GPU available). Fixes test

update error message if wrong mode
@erwanp
Copy link
Member

erwanp commented Dec 19, 2021

Tested, works well locally. I cloned your branch on Radis-Lab and tested from there too, works well (with emulated-GPU).

I let you merge ! 🎉

@dcmvdbekerom dcmvdbekerom merged commit cbeb2cc into radis:develop Dec 19, 2021
@erwanp erwanp mentioned this pull request Dec 19, 2021
@erwanp erwanp mentioned this pull request Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gpu interface not related to the physics of the code performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants