fbde6a1c77
SWDEV-184709 - support hipLaunchCooperativeKernel()
- Switch to the device library functions for GWS sync and init
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#42 edit
... //depot/stg/opencl/drivers/opencl/make/hip.git/tests/src/runtimeApi/module/hipCooperativeGroup.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palschedcl.cpp#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#152 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocschedcl.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#87 edit
[ROCm/clr commit: a932af9dbc]
27 строки
520 B
C++
27 строки
520 B
C++
//
|
|
// Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved.
|
|
//
|
|
namespace roc {
|
|
|
|
#define BLIT_KERNEL(...) #__VA_ARGS__
|
|
|
|
const char* SchedulerSourceCode = BLIT_KERNEL(
|
|
\n
|
|
extern void __amd_scheduler_rocm(__global void*);
|
|
\n
|
|
__kernel void scheduler(__global void* params) {
|
|
__amd_scheduler_rocm(params);
|
|
}
|
|
\n);
|
|
|
|
const char* GwsInitSourceCode = BLIT_KERNEL(
|
|
\n
|
|
extern void __ockl_gws_init(uint nwm1, uint rid);
|
|
\n
|
|
__kernel void gwsInit(uint value) {
|
|
__ockl_gws_init(value, 0);
|
|
}
|
|
\n);
|
|
|
|
} // namespace roc
|