2018-06-12 16:17:29 -04:00
|
|
|
//
|
|
|
|
|
// Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
namespace roc {
|
|
|
|
|
|
2019-06-12 10:00:38 -04:00
|
|
|
#define BLIT_KERNEL(...) #__VA_ARGS__
|
2018-06-12 16:17:29 -04:00
|
|
|
|
2019-06-12 10:00:38 -04:00
|
|
|
const char* SchedulerSourceCode = BLIT_KERNEL(
|
2018-06-12 16:17:29 -04:00
|
|
|
\n
|
2018-09-04 11:42:41 -04:00
|
|
|
extern void __amd_scheduler_rocm(__global void*);
|
2018-06-12 16:17:29 -04:00
|
|
|
\n
|
|
|
|
|
__kernel void scheduler(__global void* params) {
|
2018-09-04 11:42:41 -04:00
|
|
|
__amd_scheduler_rocm(params);
|
2018-06-12 16:17:29 -04:00
|
|
|
}
|
|
|
|
|
\n);
|
2019-09-27 14:07:19 -04:00
|
|
|
|
2019-06-12 10:00:38 -04:00
|
|
|
const char* GwsInitSourceCode = BLIT_KERNEL(
|
|
|
|
|
\n
|
2019-09-27 14:07:19 -04:00
|
|
|
extern void __ockl_gws_init(uint nwm1, uint rid);
|
|
|
|
|
\n
|
2019-06-12 10:00:38 -04:00
|
|
|
__kernel void gwsInit(uint value) {
|
2019-09-27 14:07:19 -04:00
|
|
|
__ockl_gws_init(value, 0);
|
2019-06-12 10:00:38 -04:00
|
|
|
}
|
|
|
|
|
\n);
|
2018-06-12 16:17:29 -04:00
|
|
|
|
|
|
|
|
} // namespace roc
|