We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be67a0f commit fe39d2cCopy full SHA for fe39d2c
1 file changed
cuda_core/cuda/core/_memory/_buffer.pyx
@@ -443,6 +443,7 @@ cdef class Buffer:
443
444
# Memory Attribute Query Helpers
445
# ------------------------------
446
+@cython.critical_section
447
cdef inline void _init_mem_attrs(Buffer self):
448
"""Initialize memory attributes by querying the pointer."""
449
if not self._mem_attrs_inited.load(memory_order_acquire):
0 commit comments