[TAU] Add OpenACC support (#50279)
This commit is contained in:
parent
2a6a6602da
commit
38829b01df
@ -132,7 +132,7 @@ class Tau(Package):
|
||||
default=False,
|
||||
description="Do not add -no-pie while linking with Ubuntu.",
|
||||
)
|
||||
|
||||
variant("openacc", default=False, description="Activates OpenACC support")
|
||||
depends_on("c", type="build") # generated
|
||||
depends_on("cxx", type="build") # generated
|
||||
depends_on("fortran", type="build") # generated
|
||||
@ -415,6 +415,9 @@ def install(self, spec, prefix):
|
||||
if "+disable-no-pie" in spec:
|
||||
options.append("-disable-no-pie-on-ubuntu")
|
||||
|
||||
if "+openacc" in spec:
|
||||
options.append("-openacc")
|
||||
|
||||
if "+dyninst" in spec:
|
||||
options.append("-dyninst=%s" % spec["dyninst"].prefix)
|
||||
if "+tbb" not in spec:
|
||||
|
Loading…
Reference in New Issue
Block a user