@@ -78,26 +78,26 @@ cdef class Memory:
7878 return " <Intel(R) USM allocated memory block of {} bytes at {}>" \
7979 .format(self .nbytes, hex (< object > (< Py_ssize_t> self .memory_ptr)))
8080
81- def _usm_type (self , context = None ):
81+ def _usm_type (self , syclobj = None ):
8282 cdef const char * kind
8383 cdef SyclContext ctx
8484 cdef SyclQueue q
85- if context is None :
85+ if syclobj is None :
8686 ctx = self ._context
8787 kind = DPPLUSM_GetPointerType(self .memory_ptr,
8888 ctx.get_context_ref())
89- elif isinstance (context , SyclContext):
90- ctx = < SyclContext> (context )
89+ elif isinstance (syclobj , SyclContext):
90+ ctx = < SyclContext> (syclobj )
9191 kind = DPPLUSM_GetPointerType(self .memory_ptr,
9292 ctx.get_context_ref())
93- elif isinstance (context , SyclQueue):
94- q = < SyclQueue> (context )
93+ elif isinstance (syclobj , SyclQueue):
94+ q = < SyclQueue> (syclobj )
9595 ctx = q.get_sycl_context()
9696 kind = DPPLUSM_GetPointerType(self .memory_ptr,
9797 ctx.get_context_ref())
9898 else :
99- raise ValueError (" sycl_context keyword can be either None, "
100- " or an instance of dppl. SyclConext" )
99+ raise ValueError (" syclobj keyword can be either None, "
100+ " or an instance of SyclConext or SyclQueue " )
101101 return kind.decode(' UTF-8' )
102102
103103
0 commit comments