Add setDevice to try and initialize the context on cuda
[ROCm/hip commit: 29a257d79b]
이 커밋은 다음에 포함됨:
1 부모
fcadd1107d
커밋
b6e01adc72
1 파일이 변경됨
+1
@@ -127,6 +127,7 @@ void run_multi_threads(uint32_t n) {
|
||||
std::vector<joinable_thread> threads;
|
||||
for (uint32_t i = 0; i < n; i++) {
|
||||
threads.emplace_back(std::thread{[=, &mf] {
|
||||
hipSetDevice(0);
|
||||
mf[i] = load();
|
||||
}});
|
||||
}
|
||||
|
||||
새 이슈에서 참조
사용자 차단