Skip to content

Commit

Permalink
COMP: remove __write_only from all OpenCL*.cl kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis P. Shamonin authored and N-Dekker committed Sep 27, 2024
1 parent 5778478 commit f8ec285
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Testing/OpenCLBufferTest.cl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
*=========================================================================*/

__kernel void SetFloat( __global __write_only float *output, float input )
__kernel void SetFloat( __global float *output, float input )
{
uint index = get_global_id( 0 );

Expand Down
4 changes: 2 additions & 2 deletions Testing/OpenCLImageTest.cl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
__constant sampler_t imageSampler = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST;

/* Copy input 2D image to output 2D image */
__kernel void Image2DCopy( __read_only image2d_t input, __write_only image2d_t output )
__kernel void Image2DCopy( __read_only image2d_t input, image2d_t output )
{
int2 coord = (int2)( get_global_id( 0 ), get_global_id( 1 ) );
uint4 temp = read_imageui( input, imageSampler, coord );
Expand All @@ -29,7 +29,7 @@ __kernel void Image2DCopy( __read_only image2d_t input, __write_only image2d_t o


/* Copy input 3D image to 2D image */
__kernel void Image3DCopy( __read_only image3d_t input, __write_only image2d_t output )
__kernel void Image3DCopy( __read_only image3d_t input, image2d_t output )
{
int2 coord = (int2)( get_global_id( 0 ), get_global_id( 1 ) );

Expand Down
2 changes: 1 addition & 1 deletion Testing/OpenCLKernelToImageBridgeTest.cl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
*=========================================================================*/

__kernel void SetDirection( float4 input, __global __write_only float *output )
__kernel void SetDirection( float4 input, __global float *output )
{
output[0] = input.x;
output[1] = input.y;
Expand Down
2 changes: 1 addition & 1 deletion Testing/OpenCLSimpleTest1.cl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
*=========================================================================*/

__kernel void SimpleKernel1( __global __write_only float *output, float input )
__kernel void SimpleKernel1( __global float *output, float input )
{
output[0] = input;
}
2 changes: 1 addition & 1 deletion Testing/OpenCLSimpleTest2.cl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
*=========================================================================*/

__kernel void SimpleKernel2( __global __write_only float *output, float input )
__kernel void SimpleKernel2( __global float *output, float input )
{
output[0] = input;
}
4 changes: 2 additions & 2 deletions Testing/OpenCLVectorTest.cl
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
*
*=========================================================================*/

__kernel void SetUChar( __global __write_only uchar *output, uchar input )
__kernel void SetUChar( __global uchar *output, uchar input )
{
uint index = get_global_id( 0 );

output[index] = input;
}


__kernel void SetFloat( __global __write_only float *output, float input )
__kernel void SetFloat( __global float *output, float input )
{
uint index = get_global_id( 0 );

Expand Down

0 comments on commit f8ec285

Please sign in to comment.