kordk / torch-ecpg

(GPU accelerated) eCpG mapper
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Add user option to select CPU only analysis even when GPU present #11

Closed kordk closed 1 year ago

kordk commented 1 year ago

User should be able to force a CPU only analysis even if GPU is detected.

For example, this option would be helpful for smaller analyses when the GPU is physically present on the system but not available to run the analysis. We are actually having this issue while we test, and can often occur on shared systems with multiple users and multiple simultaneously running analyses.

liamgd commented 1 year ago

This can be done using tecpg -t [THREADS] [...COMMAND]. I made this more clear in the README in 12ae1fe. A value of 0 uses the first CUDA enabled device, if available, and this is the default. See the logger output for details on how the device is chosen.