[hipcc] Temporary add -D_OPENMP to clang options to workaround cmake issue (#1540)
* Temporary add -D_OPENMP to clang options in hipcc to allow using CMake OpenMP detection with hip-clang (until updated CMake version is available).
Tá an tiomantas seo le fáil i:
tiomanta ag
Maneesh Gupta
tuismitheoir
73ca2b0083
tiomantas
596bf4e326
@@ -526,6 +526,13 @@ foreach $arg (@ARGV)
|
|||||||
$optArg = $arg;
|
$optArg = $arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## This is a temporary workaround for CMake detection of OpenMP support.
|
||||||
|
## It should be removed when the OpenMP detection c++ test in CMake is updated
|
||||||
|
## and corrected CMake version is available.
|
||||||
|
if((defined $HIP_COMPILER) and ($HIP_COMPILER eq "clang") and ($arg eq '-fopenmp')) {
|
||||||
|
$HIPCXXFLAGS .= " -D_OPENMP "
|
||||||
|
}
|
||||||
|
|
||||||
## process linker response file for hip-clang
|
## process linker response file for hip-clang
|
||||||
## extract object files from static library and pass them directly to
|
## extract object files from static library and pass them directly to
|
||||||
## hip-clang in command line.
|
## hip-clang in command line.
|
||||||
|
|||||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir