Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Add large GRF test #1368

Merged
merged 1 commit into from
Nov 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: env SYCL_PI_TRACE=-1 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER --check-prefixes=CHECK,CHECK-NO-VAR
// 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
// RUN: %clangxx -fsycl -DUSE_LARGE_GRF=1 %s -o %t.out
// RUN: env SYCL_PI_TRACE=-1 %GPU_RUN_PLACEHOLDER %t.out 2>&1 %GPU_CHECK_PLACEHOLDER --check-prefixes=CHECK,CHECK-NO-VAR
// 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

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

int main(void) {
Expand Down