From 1b3e669a35c973f9e9615e154f86ba3fbdb56fd5 Mon Sep 17 00:00:00 2001 From: Alex Reinking Date: Fri, 7 Jun 2024 12:29:43 -0400 Subject: [PATCH] Enable gpu_f16_intrinsics on OpenCL+CLHalf --- test/correctness/gpu_f16_intrinsics.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/correctness/gpu_f16_intrinsics.cpp b/test/correctness/gpu_f16_intrinsics.cpp index b8bad8eb0a37..17032ecbff07 100644 --- a/test/correctness/gpu_f16_intrinsics.cpp +++ b/test/correctness/gpu_f16_intrinsics.cpp @@ -4,8 +4,9 @@ using namespace Halide; int main(int argc, char *argv[]) { auto target = get_jit_target_from_environment(); - if (!target.has_feature(Target::Metal)) { - printf("[SKIP] No metal target enabled.\n"); + if (!target.has_feature(Target::Metal) && + !target.features_all_of({Target::OpenCL, Target::CLHalf})) { + printf("[SKIP] Test only applies to Metal and OpenCL+CLHalf.\n"); return 0; }