File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ class image_impl final : public SYCLMemObjT<AllocatorT> {
283
283
RT::PiEvent &OutEventToWait) override {
284
284
void *UserPtr = InitFromUserData ? BaseT::getUserPtr () : nullptr ;
285
285
286
- RT::PiMemImageDesc Desc = getImageDesc (( bool ) UserPtr);
286
+ RT::PiMemImageDesc Desc = getImageDesc (static_cast < bool >( UserPtr) );
287
287
assert (checkImageDesc (Desc, Context, UserPtr) &&
288
288
" The check an image desc failed." );
289
289
@@ -385,8 +385,8 @@ class image_impl final : public SYCLMemObjT<AllocatorT> {
385
385
// TODO handle cases with IMAGE1D_ARRAY and IMAGE2D_ARRAY
386
386
Desc.image_array_size = 0 ;
387
387
// Pitches must be 0 if host ptr is not provided.
388
- Desc.image_row_pitch = InitFromHostPtr ? MRowPitch: 0 ;
389
- Desc.image_slice_pitch = InitFromHostPtr ? MSlicePitch: 0 ;
388
+ Desc.image_row_pitch = InitFromHostPtr ? MRowPitch : 0 ;
389
+ Desc.image_slice_pitch = InitFromHostPtr ? MSlicePitch : 0 ;
390
390
391
391
Desc.num_mip_levels = 0 ;
392
392
Desc.num_samples = 0 ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ int main() {
25
25
const sycl::image_channel_type ChanType = sycl::image_channel_type::fp32;
26
26
27
27
constexpr auto SYCLRead = sycl::access::mode::read;
28
- constexpr auto SYCLWrite = cl:: sycl::access::mode::write;
28
+ constexpr auto SYCLWrite = sycl::access::mode::write;
29
29
30
30
const sycl::range<2 > Img1Size (4 , 4 );
31
31
const sycl::range<2 > Img2Size (4 , 4 );
You can’t perform that action at this time.
0 commit comments