]> gitweb.factorcode.org Git - factor.git/commitdiff
cuda: Rename cuda-error.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 24 Mar 2013 16:41:26 +0000 (09:41 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 24 Mar 2013 17:11:16 +0000 (10:11 -0700)
extra/cuda/cuda.factor

index c86fbacc69f0349935dd2a2cd969be5a193fc9f5..04c2f304c8f915efb78af9af1d77f00d5987737a 100644 (file)
@@ -10,10 +10,10 @@ sequences words ;
 QUALIFIED-WITH: alien.c-types c
 IN: cuda
 
-TUPLE: cuda-error code ;
+TUPLE: cuda-error-state code ;
 
 : cuda-error ( code -- )
-    dup CUDA_SUCCESS = [ drop ] [ \ cuda-error boa throw ] if ;
+    dup CUDA_SUCCESS = [ drop ] [ \ cuda-error-state boa throw ] if ;
 
 : cuda-version ( -- n )
     { c:int } [ cuDriverGetVersion cuda-error ] with-out-parameters ;