Skip to content

Commit 7cbd152

Browse files
committed
Clang format
1 parent 6017bd9 commit 7cbd152

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sycl/plugins/cuda/pi_cuda.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,8 +2831,7 @@ pi_result cuda_piSamplerCreate(pi_context context,
28312831

28322832
bool propSeen[3] = {false, false, false};
28332833
for (size_t i = 0; sampler_properties[i] != 0; i += 2) {
2834-
switch (sampler_properties[i])
2835-
{
2834+
switch (sampler_properties[i]) {
28362835
case PI_SAMPLER_PROPERTIES_NORMALIZED_COORDS:
28372836
if (propSeen[0]) {
28382837
return PI_INVALID_VALUE;
@@ -2861,11 +2860,11 @@ pi_result cuda_piSamplerCreate(pi_context context,
28612860
}
28622861
}
28632862

2864-
if(!propSeen[0]){
2863+
if (!propSeen[0]) {
28652864
retImplSampl->props_ |= CL_TRUE;
28662865
}
28672866
// Default filter mode to CL_FILTER_NEAREST
2868-
if(!propSeen[2]) {
2867+
if (!propSeen[2]) {
28692868
retImplSampl->props_ |= (CL_ADDRESS_CLAMP % CL_ADDRESS_NONE) << 2;
28702869
}
28712870

0 commit comments

Comments
 (0)