Skip to content

Commit b615655

Browse files
committed
Fix small compilation errors
1 parent ceb816a commit b615655

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

sycl/source/detail/context_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ context_impl::get_default_memory_pool(const context &Context,
605605
std::pair<std::tuple<bool, bool, bool, bool>,
606606
std::tuple<size_t, size_t, bool, bool>>() /*Empty Properties*/);
607607
#else
608-
property_list{}};
608+
property_list{});
609609
#endif
610610
// Hold onto a weak_ptr of the memory_pool_impl. Prevents circular
611611
// dependencies between the context_impl and memory_pool_impl.

sycl/source/detail/graph_memory_pool.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ graph_mem_pool::malloc(size_t Size, usm::alloc AllocType,
3333
AllocInfo.Kind = AllocType;
3434
// Collect relevant properties from memory pool
3535
if (MemPool) {
36+
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
3637
auto PropList = MemPool->getPropList();
3738
if (PropList.has_property<property::memory_pool::zero_init>()) {
3839
AllocInfo.ZeroInit = true;
3940
}
4041
if (PropList.has_property<property::memory_pool::read_only>()) {
4142
AllocInfo.ReadOnly = true;
4243
}
44+
#endif
4345
}
4446

4547
switch (AllocType) {

sycl/source/detail/memory_pool.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ memory_pool::getPropsTuple() const {
3636
#else
3737
const property_list &memory_pool::getPropList() const {
3838
return impl->getPropList();
39+
}
3940
#endif
4041

4142
__SYCL_EXPORT size_t memory_pool::get_reserved_size_current() const {

0 commit comments

Comments
 (0)