cuda.memory: use binary-object.

db4
John Benediktsson 2014-11-20 18:41:19 -08:00
parent c36a9193ae
commit 0ba693b3fa
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ DESTRUCTOR: cuda-free
cuMemcpyDtoH cuda-error ; inline
: host>device ( data -- ptr )
[ >c-ptr ] [ byte-length ] bi
binary-object
[ nip cuda-malloc dup ] [ memcpy-host>device ] 2bi ; inline
: device>host ( ptr len -- byte-array )