Skip to content

Commit abaff4b

Browse files
committed
Fix to buffer creation.
1 parent 2a808f2 commit abaff4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3127,7 +3127,7 @@ pi_result piMemBufferCreate(pi_context Context, pi_mem_flags Flags, size_t Size,
31273127
}
31283128
}
31293129

3130-
if (Result != PI_SUCCESS)
3130+
if (enableBufferPooling() && Result != PI_SUCCESS)
31313131
return Result;
31323132

31333133
if (HostPtr) {

0 commit comments

Comments
 (0)