2016-01-22 18:18:55 -05:00
|
|
|
//
|
|
|
|
|
// Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
namespace pal {
|
|
|
|
|
|
|
|
|
|
#define SCHEDULER_KERNEL(...) #__VA_ARGS__
|
|
|
|
|
|
|
|
|
|
const char* SchedulerSourceCode = SCHEDULER_KERNEL(
|
2016-08-30 16:12:06 -05:00
|
|
|
%s
|
2016-01-22 18:18:55 -05:00
|
|
|
\n
|
|
|
|
|
extern void __amd_scheduler(__global void *, __global void *, uint);
|
|
|
|
|
\n
|
|
|
|
|
__kernel void
|
|
|
|
|
scheduler(
|
|
|
|
|
__global void * queue,
|
|
|
|
|
__global void * params,
|
|
|
|
|
uint paramIdx)
|
|
|
|
|
{
|
|
|
|
|
__amd_scheduler(queue, params, paramIdx);
|
|
|
|
|
}
|
2016-08-30 16:12:06 -05:00
|
|
|
\n);
|
2016-01-22 18:18:55 -05:00
|
|
|
|
|
|
|
|
} // namespace pal
|