euro-hpc-pl / SpinGlassEngine.jl

Apache License 2.0
1 stars 1 forks source link

Automate onGPU variable setting in runtests.jl #31

Open annamariadziubyna opened 1 month ago

annamariadziubyna commented 1 month ago

Currently, to run tests on either GPU or CPU using runtests.jl, the variable onGPU must be manually set to true or false. Here is how it is currently implemented: onGPU = true # Set to false to run tests on CPU I would like to inquire if it is possible to automate this process. Specifically, the desired behavior would be:

Additionally, we want this functionality to be available across all SpinGlass packages, including SpinGlassNetworks and SpinGlassTensors.

lpawela commented 1 week ago

Try something like onGPU = CUDA.functional().