Skip to content

Commit fee182d

Browse files
committed
Re-add init
1 parent c7fc269 commit fee182d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

interfaces/cuda/Control.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace {
2323
// `static` is a bit out of place here; but we treat the whole class as an effective singleton anyways
2424

25-
thread_local int currentDeviceId;
25+
thread_local int currentDeviceId = 0;
2626
}
2727

2828
using namespace device;

interfaces/hip/Control.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
using namespace device;
2323

2424
namespace {
25-
thread_local int currentDeviceId;
25+
thread_local int currentDeviceId = 0;
2626
}
2727

2828
ConcreteAPI::ConcreteAPI() {

interfaces/sycl/Control.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <thread>
1313

1414
namespace {
15-
thread_local int currentDeviceId;
15+
thread_local int currentDeviceId = 0;
1616
}
1717

1818
using namespace device;

0 commit comments

Comments
 (0)