HPL: amdalloc with AOCC 4.0 (#37757)
* adding amdalloc when using aocc 4 * adding and libm for aocc3.2
This commit is contained in:
parent
d30698d9a8
commit
43b86ce282
1 changed files with 8 additions and 0 deletions
|
@ -115,6 +115,14 @@ def configure_args(self):
|
|||
):
|
||||
config.append("LDFLAGS={0}".format(self.spec["blas"].libs.ld_flags))
|
||||
|
||||
if "%aocc" in self.spec:
|
||||
amd_ldflags = " "
|
||||
if "%aocc@3:" in self.spec:
|
||||
amd_ldflags += "-lamdlibm -lm "
|
||||
if "%aocc@4:" in self.spec:
|
||||
amd_ldflags += "-lamdalloc "
|
||||
config.append("LDFLAGS=" + amd_ldflags)
|
||||
|
||||
return config
|
||||
|
||||
@when("@:2.2")
|
||||
|
|
Loading…
Reference in a new issue