e25e8f4561
ECR #333753 - clc2: disallow implicit function declarations (bug 10328) In addition, the change fixes the following side-effects: 1. Fix a typo in runtime/.../gpuschedcl.cpp, which fails due to the stricter check in Clang. 2. Unconditionally add sub_group builtins for pipes, without checking if the extension is enabled. See bug 10366. 3. Also added a test in ocl_features_clang to check for the sub_group builtins. Passes smoke, smoke_clang, precheckin. Additionally passes new tests added in ocl_features. Reviewed by Brian Sumner. Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/clang/lib/Sema/SemaLookup.cpp#9 edit ... //depot/stg/opencl/drivers/opencl/compiler/clc2/wrapper/ClangWrapper.cpp#12 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuschedcl.cpp#33 edit
25 rader
442 B
C++
25 rader
442 B
C++
//
|
|
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
|
|
//
|
|
|
|
namespace gpu {
|
|
|
|
#define SCHEDULER_KERNEL(...) #__VA_ARGS__
|
|
|
|
const char* SchedulerSourceCode = SCHEDULER_KERNEL(
|
|
\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);
|
|
}
|
|
\n
|
|
);
|
|
|
|
} // namespace gpu
|