diff --git a/extra/cuda/memory/memory.factor b/extra/cuda/memory/memory.factor index 9e856ad69b..b9bfd768d8 100644 --- a/extra/cuda/memory/memory.factor +++ b/extra/cuda/memory/memory.factor @@ -2,7 +2,7 @@ ! See http://factorcode.org/license.txt for BSD license. USING: accessors alien alien.data alien.destructors assocs byte-arrays cuda.ffi cuda.utils destructors fry io.encodings.string -io.encodings.utf8 kernel locals namespaces sequences strings ; +io.encodings.utf8 kernel locals math namespaces sequences strings ; QUALIFIED-WITH: alien.c-types c IN: cuda.memory @@ -12,7 +12,7 @@ IN: cuda.memory c:*int ; inline : cuda-malloc-type ( n type -- ptr ) - heap-size * cuda-malloc ; inline + c:heap-size * cuda-malloc ; inline : cuda-free ( ptr -- ) cuMemFree cuda-error ; inline