File tree Expand file tree Collapse file tree 4 files changed +35
-47
lines changed
sycl/test-e2e/KernelAndProgram Expand file tree Collapse file tree 4 files changed +35
-47
lines changed Original file line number Diff line number Diff line change
1
+ // Test SYCL -foffload-fp32-prec-div
2
+
3
+ // RUN: %clang -### -fsycl --no-offload-new-driver \
4
+ // RUN: -fsycl-targets=spir64_gen -foffload-fp32-prec-div %s 2>&1 \
5
+ // RUN: | FileCheck -check-prefix=AOT %s
6
+
7
+ // RUN: %clang -### -fsycl --no-offload-new-driver \
8
+ // RUN: -foffload-fp32-prec-div %s 2>&1 \
9
+ // RUN: | FileCheck -check-prefix=JIT %s
10
+
11
+ // AOT: "ocloc" "-output"{{.*}} "-options" "-ze-fp32-correctly-rounded-divide-sqrt"
12
+
13
+ // JIT: clang-offload-wrapper{{.*}} "-compile-opts={{.*}}-foffload-fp32-prec-div"
Original file line number Diff line number Diff line change
1
+ // Test SYCL -foffload-fp32-prec-sqrt
2
+
3
+ // RUN: %clang -### -fsycl --no-offload-new-driver \
4
+ // RUN: -fsycl-targets=spir64_gen -foffload-fp32-prec-sqrt %s 2>&1 \
5
+ // RUN: | FileCheck -check-prefix=AOT %s
6
+
7
+ // RUN: %clang -### -fsycl --no-offload-new-driver \
8
+ // RUN: -foffload-fp32-prec-sqrt %s 2>&1 \
9
+ // RUN: | FileCheck -check-prefix=JIT %s
10
+
11
+ // AOT: "ocloc" "-output"{{.*}} "-options" "-ze-fp32-correctly-rounded-divide-sqrt"
12
+
13
+ // JIT: clang-offload-wrapper{{.*}} "-compile-opts={{.*}}-foffload-fp32-prec-div"
Original file line number Diff line number Diff line change 1
- // RUN: %{build} -Wno-error=unused-command-line-argument -foffload-fp32-prec-div -o %t_with.out
1
+ // RUN: %{build} -Wno-error=unused-command-line-argument -foffload-fp32-prec-div -foffload-fp32-prec-sqrt -o %t_with.out
2
+ // RUN: %{build} -Wno-error=unused-command-line-argument -foffload-fp32-prec-div -o %t_with_div.out
3
+ // RUN: %{build} -Wno-error=unused-command-line-argument -foffload-fp32-prec-sqrt -o %t_with_sqrt.out
2
4
// RUN: %{build} -o %t_without.out
3
5
4
6
// RUN: env SYCL_UR_TRACE=2 %{run} %t_with.out 2>&1 | FileCheck %if hip || cuda %{ --check-prefix=CHECK-WITHOUT %} %else %{ --check-prefix=CHECK-WITH %} %s
5
- // RUN: env SYCL_UR_TRACE=2 %{run} %t_without.out 2>&1 | FileCheck --implicit-check-not=fp32-correctly-rounded-divide-div
7
+ // RUN: env SYCL_UR_TRACE=2 %{run} %t_with_div.out 2>&1 | FileCheck %if hip || cuda %{ --check-prefix=CHECK-WITHOUT %} %else %{ --check-prefix=CHECK-WITH %} %s
8
+ // RUN: env SYCL_UR_TRACE=2 %{run} %t_with_sqrt.out 2>&1 | FileCheck %if hip || cuda %{ --check-prefix=CHECK-WITHOUT %} %else %{ --check-prefix=CHECK-WITH %} %s
9
+ // RUN: env SYCL_UR_TRACE=2 %{run} %t_without.out 2>&1 | FileCheck --implicit-check-not=fp32-correctly-rounded-divide-sqrt %s
6
10
7
- // CHECK-INTEL- WITH: <--- urProgramBuild
8
- // CHECK-INTEL- WITH-SAME: fp32-correctly-rounded-divide-div
11
+ // CHECK-WITH: <--- urProgramBuild
12
+ // CHECK-WITH-SAME: fp32-correctly-rounded-divide-sqrt
9
13
10
- // CHECK-WITHOUT-NOT: <--- urProgramBuild{{.*}}fp32-correctly-rounded-divide-div {{.*}} -> UR_RESULT_SUCCESS
14
+ // CHECK-WITHOUT-NOT: <--- urProgramBuild{{.*}}fp32-correctly-rounded-divide-sqrt {{.*}} -> UR_RESULT_SUCCESS
11
15
// CHECK-WITHOUT: <--- urProgramBuild{{.*}} -> UR_RESULT_SUCCESS
12
16
13
17
#include < sycl/detail/core.hpp>
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments