GCOMPILE
From Jacket Wiki
Back to Jacket Function List, Jacket Basics
Compile M-code directly into a single GPU kernel. Please see GCOMPILE Usage and our blog for more information.
Supported Syntax
Option 1:
my_fn = gcompile('filename.m'); [B C ...] = my_fn(A)
Option 2:
my_fn = gcompile(verbatim); %{ function out = foo(src, val) out = val; for i = 1:10 out = out + val; end end %} B = my_fn(A, 5)
GFOR Compatibility?
Yes. Note that calling GCOMPILE to obtain a function handle should be done outside of a GFOR loop. The call to the compile function handle may be used within a GFOR loop.
Jacket-Specific Details
Please see GCOMPILE Usage for more detailed information.