cuda.memory: dependencies
parent
1d916246b0
commit
ae37cc730b
|
@ -2,7 +2,7 @@
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors alien alien.data alien.destructors assocs
|
USING: accessors alien alien.data alien.destructors assocs
|
||||||
byte-arrays cuda.ffi cuda.utils destructors fry io.encodings.string
|
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
|
QUALIFIED-WITH: alien.c-types c
|
||||||
IN: cuda.memory
|
IN: cuda.memory
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ IN: cuda.memory
|
||||||
c:*int ; inline
|
c:*int ; inline
|
||||||
|
|
||||||
: cuda-malloc-type ( n type -- ptr )
|
: cuda-malloc-type ( n type -- ptr )
|
||||||
heap-size * cuda-malloc ; inline
|
c:heap-size * cuda-malloc ; inline
|
||||||
|
|
||||||
: cuda-free ( ptr -- )
|
: cuda-free ( ptr -- )
|
||||||
cuMemFree cuda-error ; inline
|
cuMemFree cuda-error ; inline
|
||||||
|
|
Loading…
Reference in New Issue