PlasmaControl / DESC

Stellarator Equilibrium and Optimization Suite
MIT License
87 stars 22 forks source link

Add `@execute_on_cpu` decorator to other `build`/`init` methods #1145

Open YigitElma opened 1 month ago

YigitElma commented 1 month ago
          We should probably also add this in a number of other places:

Originally posted by @f0uriest in https://github.com/PlasmaControl/DESC/pull/1056#pullrequestreview-2186389974

dpanici commented 1 month ago

Add decorator to init (and build too) then running on GPU and comparing the profile of time with vs without the decorator

YigitElma commented 3 weeks ago

@sinaatalay I think this would be a good way of getting familiar with the code. We can give you some scripts (or tutorial notebooks should also be fine) and you can run them on cluster GPUs by putting execute_on_cpu decorator to some functions and do some profiling with and without it. I have some intuition about which type of functions are faster on the CPU, we can talk about it once you have your laptop.