Skip to content

Commit bd96354

Browse files
sarnexbb-sycl
authored andcommitted
[SYCL] Add large GRF test (intel#1368)
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 5abb709 commit bd96354

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

SYCL/DeviceCodeSplit/double-grf.cpp renamed to SYCL/DeviceCodeSplit/large-grf.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
// RUN: %clangxx -fsycl %s -o %t.out
2323
// RUN: env SYCL_PI_TRACE=-1 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER --check-prefixes=CHECK,CHECK-NO-VAR
2424
// 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
2528

2629
#include "../helpers.hpp"
2730
#include <iostream>
@@ -54,7 +57,11 @@ bool checkResult(const std::vector<float> &A, int Inc) {
5457
// Make the double GRF request from non-inlineable function - compiler should
5558
// mark the caller kernel as "double GRF" anyway.
5659
__attribute__((noinline)) void double_grf_marker() {
60+
#ifdef USE_LARGE_GRF
61+
set_kernel_properties(kernel_properties::use_large_grf);
62+
#else
5763
set_kernel_properties(kernel_properties::use_double_grf);
64+
#endif
5865
}
5966

6067
int main(void) {

0 commit comments

Comments
 (0)