Added two warnings:
before building the topology map check if tiles are requested but the topo method is not hwloc;
after building the topology map check if tiles are requested but not detected by the library.
Differential D40340
Warning is emitted when tiles are requested but cannot be used omalyshe on Nov 22 2017, 3:36 AM. Authored by
Details Added two warnings: before building the topology map check if tiles are requested but the topo method is not hwloc; after building the topology map check if tiles are requested but not detected by the library.
Diff Detail
Event TimelineComment Actions Hi, this fails to build (Linux x86-64): ../projects/openmp/runtime/src/kmp_affinity.cpp:3852:30: error: use of undeclared identifier 'affinity_gran_tile'; did you mean 'affinity_gran_fine'? if (__kmp_affinity_gran == affinity_gran_tile && ^~~~~~~~~~~~~~~~~~ affinity_gran_fine ../projects/openmp/runtime/src/kmp.h:702:3: note: 'affinity_gran_fine' declared here affinity_gran_fine = 0, ^ ../projects/openmp/runtime/src/kmp_affinity.cpp:4125:30: error: use of undeclared identifier 'affinity_gran_tile'; did you mean 'affinity_gran_fine'? if (__kmp_affinity_gran == affinity_gran_tile && __kmp_tile_depth == 0) { ^~~~~~~~~~~~~~~~~~ affinity_gran_fine ../projects/openmp/runtime/src/kmp.h:702:3: note: 'affinity_gran_fine' declared here affinity_gran_fine = 0, ^ ../projects/openmp/runtime/src/kmp_affinity.cpp:4125:52: error: use of undeclared identifier '__kmp_tile_depth'; did you mean '__kmp_aff_depth'? if (__kmp_affinity_gran == affinity_gran_tile && __kmp_tile_depth == 0) { ^~~~~~~~~~~~~~~~ __kmp_aff_depth ../projects/openmp/runtime/src/kmp_affinity.cpp:3777:12: note: '__kmp_aff_depth' declared here static int __kmp_aff_depth = 0; ^ 3 errors generated. Comment Actions I've just committed the related patch https://reviews.llvm.org/D40309 that should fix the build problem. We should have set the dependencies between these patches initially to avoid this kind of problems... |