File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ char* dpnp_memory_alloc_c(size_t size_in_bytes)
60
60
{
61
61
memory_type = cl::sycl::usm::alloc::device;
62
62
}
63
- array = reinterpret_cast <char *>(malloc (size_in_bytes, DPNP_QUEUE, memory_type));
63
+ array = reinterpret_cast <char *>(sycl:: malloc (size_in_bytes, DPNP_QUEUE, memory_type));
64
64
if (array == nullptr )
65
65
{
66
66
// TODO add information about number of allocated bytes
@@ -87,13 +87,13 @@ void dpnp_memory_free_c(void* ptr)
87
87
// std::cout << "dpnp_memory_free_c(ptr=" << (void*)ptr << ")" << std::endl;
88
88
if (ptr != numpy_stub)
89
89
{
90
- free (ptr, DPNP_QUEUE);
90
+ sycl:: free (ptr, DPNP_QUEUE);
91
91
}
92
92
}
93
93
94
94
void dpnp_memory_memcpy_c (void * dst, const void * src, size_t size_in_bytes)
95
95
{
96
96
// std::cout << "dpnp_memory_memcpy_c(dst=" << dst << ", src=" << src << ")" << std::endl;
97
97
98
- memcpy (dst, src, size_in_bytes);
98
+ DPNP_QUEUE. memcpy (dst, src, size_in_bytes). wait ( );
99
99
}
You can’t perform that action at this time.
0 commit comments