diff --git a/runtime/src/z_Linux_util.cpp b/runtime/src/z_Linux_util.cpp index cf4db02ccc9e9aee4755cfc4fdc6e97434a3b9b7..0e85fd46b79dda18b14d488ea9058b8cace1203a 100644 --- a/runtime/src/z_Linux_util.cpp +++ b/runtime/src/z_Linux_util.cpp @@ -828,6 +828,7 @@ void __kmp_create_worker(int gtid, kmp_info_t *th, size_t stack_size) { KMP_MB(); /* Flush all pending memory write invalidates. */ +#if 0 /*TG: comment part of this code. kmp_affinit_set_place could be called if OMP_PLACES not set. (assert)*/ /* move this code from thread code __kmp_launch_worker to here in order to set the righ affinity mask at thread creation. */ @@ -837,6 +838,7 @@ void __kmp_create_worker(int gtid, kmp_info_t *th, size_t stack_size) { __kmp_affinity_set_place( gtid ); # endif #endif +#endif #ifdef KMP_THREAD_ATTR status = pthread_attr_init(&thread_attr);