cuda.devices: Utility word to print all cuda devices.
parent
acffb259f7
commit
b3ba829601
|
@ -61,6 +61,10 @@ IN: cuda.devices
|
||||||
]
|
]
|
||||||
} cleave ;
|
} cleave ;
|
||||||
|
|
||||||
|
: cuda-devices. ( -- )
|
||||||
|
init-cuda
|
||||||
|
enumerate-cuda-devices [ cuda-device. ] each ;
|
||||||
|
|
||||||
: cuda. ( -- )
|
: cuda. ( -- )
|
||||||
init-cuda
|
init-cuda
|
||||||
"CUDA Version: " write cuda-version number>string print nl
|
"CUDA Version: " write cuda-version number>string print nl
|
||||||
|
|
Loading…
Reference in New Issue