jaten@afarm:~/NVIDIA_GPU_Computing_SDK/C/src/matrixMul$ gsc
Gambit v4.6.0
> (load "obj/x86_64/release/matrixMul.cu")
*** ERROR IN (console)@1.1 -- No such file or directory
(load "obj/x86_64/release/matrixMul.cu")
1> (load "obj/x86_64/release/matrixMul.cu.o1")
*** WARNING -- Could not find C function: "____20_matrixMul_2e_cu_2e_o1"
*** ERROR IN (console)@2.1 -- /home/jaten/NVIDIA_GPU_Computing_SDK/C/src/matrixMul/obj/x86_64/release/matrixMul.cu.o1: only ET_DYN and ET_EXEC can be loaded
(load "obj/x86_64/release/matrixMul.cu.o1")
2>
1>
> (load "obj/x86_64/release/matrixMul.cu.o")
*** ERROR IN "obj/x86_64/release/matrixMul.cu.o"@1.5 -- Illegal character: #\x02
1>
> (load "obj/x86_64/release/matrixMul.cu")
*** ERROR IN (console)@4.1 -- No such file or directory
(load "obj/x86_64/release/matrixMul.cu")
1>
> (load "prog.scm")
*** ERROR IN "prog.scm"@2.1 -- Interpreter does not support ##c-declare
1>
>
*** EOF again to exit
jaten@afarm:~/NVIDIA_GPU_Computing_SDK/C/src/matrixMul$ cat prog.scm
(c-declare "extern double foo(int a, int b);")
(define foo (c-lambda (int int) double "foo"))
(println (foo 11 22)) ;; test it...
jaten@afarm:~/NVIDIA_GPU_Computing_SDK/C/src/matrixMul$ ./prog
Device 0: "GeForce GTX 460" with Compute 2.1 capability
Error when parsing command line argument string.
Using Matrix Sizes: A(80 x 160), B(80 x 80), C(80 x 160)
Run Kernels...
matrixMul, Throughput = 79.8960 GFlop/s, Time = 0.00003 s, Size = 2048000 Ops, NumDevsUsed = 1, Workgroup = 256
Check against Host computation...
PASSED
foo() called: Test code integrating Gambit Scheme with nVIDIA CUDA-C code complete!
Answer to foo(11,22) =
.02268041237113402
jaten@afarm:~/NVIDIA_GPU_Computing_SDK/C/src/matrixMul$