We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b2fb7a commit 4a99538Copy full SHA for 4a99538
ggml/src/ggml-cann/ggml-cann.cpp
@@ -75,7 +75,7 @@
75
* @param device The device ID to set.
76
*/
77
void ggml_cann_set_device(const int32_t device) {
78
- int current_device;
+ int current_device = -1;
79
aclrtGetDevice(¤t_device);
80
81
if (device == current_device) {
0 commit comments