Add setDevice to try and initialize the context on cuda

[ROCm/clr commit: 9494d0e3c9]
Этот коммит содержится в:
Paul
2020-02-10 13:37:45 -06:00
родитель 0b46506fcf
Коммит 218994969f
+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();
}});
}