]> gitweb.factorcode.org Git - factor.git/commit
cuda: fix ffi, it's size_t (32bit on win32, 64bit on win64)
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 7 Apr 2023 18:43:19 +0000 (13:43 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 7 Apr 2023 18:43:19 +0000 (13:43 -0500)
commitb74431c1c29dfd6918d0b96a85dfd68bd0f3d301
treef9eaf52c056b85096c6ae91dbbf0b260cc140b25
parent7405801e1d8d83ccc9aa707ab40ed2c42c7e43ac
cuda: fix ffi, it's size_t (32bit on win32, 64bit on win64)

cuDeviceTotalMem_v2 can't get vram sizes above 4GB
probably need to use directx apis to get real vram on win32
extra/cuda/devices/devices.factor
extra/cuda/ffi/ffi.factor