Openmp cmake config#1038
Conversation
TorreZuk
left a comment
There was a problem hiding this comment.
It looks good but need to test manually a bit to confirm. Can teams message for docker or other build to test against.
|
This also will take care of a future situation where |
|
@estewart08 this seems to work in my latest docker so are we still good to merge and cherry pick this? |
|
@TorreZuk, that is fine with me. Not sure if the failing checks need to run again. |
|
@estewart08 not sure on the Azure failures, can you look as maybe the old cmake config is bad so causes the errors shown in the build log? Not sure how our other builds are all fine. Maybe rebase PR on develop and run again. |
c1924cc to
e59e543
Compare
The first attempt to locate libomp.so will be done via find_package(OpenMP) in CONFIG mode. This will look for openmp-config.cmake in ROCm, which will have the full path of libomp.so stored in 'openmp_LIB_INSTALL_DIR'. This variable is calculated based on the location of the config file and a suffix of 'openmp_LIB_DIR', which is gathered during build time. 'openmp_LIB_DIR' usually resolves to 'lib' or 'lib/<clang-target>'. Currently, find_package(OpenMP) only locates the system (non-ROCm) libomp.so/libgomp.so and when found a path to ROCm is manually provided. This is not really what we want to achieve, but will be left in as a fallback if the config is not found.
e59e543 to
b97e104
Compare
OpenMP cmake config support along with RPATH updates. (cherry picked from commit fe3af3c)
OpenMP cmake config support along with RPATH updates. (cherry picked from commit fe3af3c) Co-authored-by: estewart08 <ethan.stewart@amd.com>
…ake-conf…" This reverts commit e4ba998.
OpenMP cmake config support along with RPATH updates. [ROCm/hipBLAS commit: fe3af3c]
Summary of proposed changes: