Skip to content

Commit bbde102

Browse files
committed
malloc_device -> malloc_shared
1 parent 11dba6b commit bbde102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test-e2e/VirtualFunctions/vf-optional-kernel-features.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main() {
2929
// Selected device may not support 'fp64' aspect
3030
sycl::queue Q;
3131

32-
Base *Obj = sycl::malloc_device<Base>(1, Q);
32+
Base *Obj = sycl::malloc_shared<Base>(1, Q);
3333

3434
Q.single_task<Constructor>([=]() {
3535
// Even though at LLVM IR level this kernel does reference 'Base::foo'

0 commit comments

Comments
 (0)