-
Notifications
You must be signed in to change notification settings - Fork 115
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
Gpu widget new branch #380
Conversation
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!
@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 |
examples/plot_gpu_widgets.py
Outdated
|
||
sf.fetch_databank("hitemp") | ||
|
||
s = sf.eq_spectrum_gpu_explore( |
There was a problem hiding this comment.
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 :
s = sf.eq_spectrum_gpu_explore( | |
s = sf.eq_spectrum_gpu_interactive( |
@dcmvdbekerom good to merge ? We could release it in 0.12 |
I'll work on it tomorrow, I think it should be ready by then! |
There's a problem with the pressure slider; the keyword is |
adresses points 1 and 2 of radis#289
also change dlm_log_pG/L to dxG/L
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? |
point 3 radis#289
@erwanp I also changed all occurances of DLM to LDM; let's make sure this went well everywhere. |
This reverts commit c18b063f6c82dbaecc7fb674e765fa9a9ac04dc2. (files got corrupted)
…cs do not have GPU available). Fixes test update error message if wrong mode
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 ! 🎉 |
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.
GPU code : make LDM grid size variable #267
Update GPU documentation #289