Fix uninitialized variable warning
Fix warning when using valgrind
Change-Id: Ie59eaa990b9b5d339a178a2c6f9f4fac0e34e925
[ROCm/ROCR-Runtime commit: dd255d31b8]
This commit is contained in:
@@ -103,6 +103,7 @@ class os_thread {
|
||||
if (core::Runtime::runtime_singleton_->flag().override_cpu_affinity()) {
|
||||
int cores = get_nprocs_conf();
|
||||
cpu_set_t* cpuset = CPU_ALLOC(cores);
|
||||
CPU_ZERO_S(CPU_ALLOC_SIZE(cores), cpuset);
|
||||
for (int i = 0; i < cores; i++) {
|
||||
CPU_SET(i, cpuset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user