Use CPU_SET_S instead of CPU_SET
Fix incorrect use of CPU_SET on variable size cpu_set_t
Suggested by Christopher E. Moore on github
https://github.com/RadeonOpenCompute/ROCR-Runtime/issues/130
Change-Id: I710b56683ba07c08dcd83c851bf72e4f127a0ad4
[ROCm/ROCR-Runtime commit: f07b8f2250]
이 커밋은 다음에 포함됨:
1 부모
ecd768797e
커밋
d81bf9cd57
1 파일이 변경됨
+1
-1
@@ -120,7 +120,7 @@ class os_thread {
|
||||
}
|
||||
CPU_ZERO_S(CPU_ALLOC_SIZE(cores), cpuset);
|
||||
for (int i = 0; i < cores; i++) {
|
||||
CPU_SET(i, cpuset);
|
||||
CPU_SET_S(i, CPU_ALLOC_SIZE(cores), cpuset);
|
||||
}
|
||||
err = pthread_attr_setaffinity_np(&attrib, CPU_ALLOC_SIZE(cores), cpuset);
|
||||
CPU_FREE(cpuset);
|
||||
|
||||
새 이슈에서 참조
사용자 차단