Commit 996199b
Fix CUDA GPU detection when device is set to CPU
- Add runtime check for PARAM.inp.device before calling GPU detection functions
- Prevent cudaErrcheck from exiting when no GPU is available but device is set to "cpu"
- Apply same logic as non-MPI version to MPI version in output_device_info
Co-authored-by: dzzz2001 <153698752+dzzz2001@users.noreply.github.com>1 parent 6dea7c7 commit 996199b
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| |||
133 | 139 | | |
134 | 140 | | |
135 | 141 | | |
136 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
137 | 149 | | |
138 | 150 | | |
139 | 151 | | |
| |||
0 commit comments