fix ck build for 5.6.1 (#40304)
* initial commit to fix ck build for 5.6.1 * disable mlir for miopen-hip * use satisfies for checking specs and add nlohmann-json dependency for 5.4 onwards
This commit is contained in:
parent
df01a11e07
commit
01747b50df
@ -64,9 +64,14 @@ def cmake_args(self):
|
||||
]
|
||||
if "auto" not in self.spec.variants["amdgpu_target"]:
|
||||
args.append(self.define_from_variant("AMDGPU_TARGETS", "amdgpu_target"))
|
||||
if self.spec.satisfies("@5.6.1:"):
|
||||
args.append(self.define("INSTANCES_ONLY", "ON"))
|
||||
return args
|
||||
|
||||
def build(self, spec, prefix):
|
||||
with working_dir(self.build_directory):
|
||||
# only instances is necessary to build and install
|
||||
make("instances")
|
||||
if self.spec.satisfies("@5.6.1:"):
|
||||
make()
|
||||
else:
|
||||
make("instances")
|
||||
|
@ -160,6 +160,7 @@ class MiopenHip(CMakePackage):
|
||||
depends_on("nlohmann-json", type="link")
|
||||
depends_on("composable-kernel@" + ver, when="@" + ver)
|
||||
for ver in ["5.4.0", "5.4.3", "5.5.0"]:
|
||||
depends_on("nlohmann-json", type="link")
|
||||
depends_on("rocmlir@" + ver, when="@" + ver)
|
||||
|
||||
def setup_build_environment(self, env):
|
||||
@ -216,6 +217,7 @@ def cmake_args(self):
|
||||
if self.spec.satisfies("@5.5.1:"):
|
||||
args.append(self.define("MIOPEN_USE_COMPOSABLEKERNEL", "ON"))
|
||||
args.append(self.define("MIOPEN_ENABLE_AI_KERNEL_TUNING", "OFF"))
|
||||
args.append(self.define("MIOPEN_USE_MLIR", "OFF"))
|
||||
args.append(
|
||||
"-DNLOHMANN_JSON_INCLUDE={0}".format(self.spec["nlohmann-json"].prefix.include)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user