mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
Add global address space qualifier to kernel with indirect access
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f06938c3d0
commit
cf7ecb903c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -8,7 +8,7 @@
|
||||
__kernel void testIndirect(__global long* buf) {
|
||||
size_t gid = get_global_id(0);
|
||||
if (gid == 0) {
|
||||
char* val = (char*)buf[0];
|
||||
__global char* val = (__global char*)buf[0];
|
||||
*val = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user