File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 22
22
// RUN: %clangxx -fsycl %s -o %t.out
23
23
// RUN: env SYCL_PI_TRACE=-1 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER --check-prefixes=CHECK,CHECK-NO-VAR
24
24
// RUN: env SYCL_PROGRAM_COMPILE_OPTIONS="-g" SYCL_PI_TRACE=-1 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER --check-prefixes=CHECK,CHECK-WITH-VAR
25
+ // RUN: %clangxx -fsycl -DUSE_LARGE_GRF=1 %s -o %t.out
26
+ // RUN: env SYCL_PI_TRACE=-1 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER --check-prefixes=CHECK,CHECK-NO-VAR
27
+ // RUN: env SYCL_PROGRAM_COMPILE_OPTIONS="-g" SYCL_PI_TRACE=-1 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER --check-prefixes=CHECK,CHECK-WITH-VAR
25
28
26
29
#include " ../helpers.hpp"
27
30
#include < iostream>
@@ -54,7 +57,11 @@ bool checkResult(const std::vector<float> &A, int Inc) {
54
57
// Make the double GRF request from non-inlineable function - compiler should
55
58
// mark the caller kernel as "double GRF" anyway.
56
59
__attribute__ ((noinline)) void double_grf_marker() {
60
+ #ifdef USE_LARGE_GRF
61
+ set_kernel_properties (kernel_properties::use_large_grf);
62
+ #else
57
63
set_kernel_properties (kernel_properties::use_double_grf);
64
+ #endif
58
65
}
59
66
60
67
int main (void ) {
You can’t perform that action at this time.
0 commit comments