Skip to content

Commit e98f4e2

Browse files
committed
Add checks for whether buffer loc extension is supported
1 parent 1dd236b commit e98f4e2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/acl_platform.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ void acl_init_platform(void) {
322322
//" cl_intel_unified_shared_memory"
323323
#endif
324324
" cl_intel_create_buffer_with_properties"
325-
" cl_intel_mem_channel_property";
325+
" cl_intel_mem_channel_property"
326+
" cl_intel_mem_alloc_buffer_location";
326327

327328
acl_platform.profile = "EMBEDDED_PROFILE";
328329
acl_platform.hal = acl_get_hal();

test/acl_device_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ MT_TEST(DeviceInfo, basic) {
327327
if (queries[i] != CL_DEVICE_EXTENSIONS) {
328328
// Non-empty result for most supported queries.
329329
CHECK(size_ret > 0);
330+
} else {
331+
// Check buffer location is a supported extension
332+
CHECK(strstr(str, "cl_intel_mem_alloc_buffer_location"));
330333
}
331334

332335
switch (queries[i]) {

0 commit comments

Comments
 (0)