This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
2024-03-10 20:32:51 +03:00

24 lines
598 B
ObjectPascal
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

uses OpenCLABC;
begin
// Запустите "Прекомпилировать.pas", чтобы создать этот файл
{$resource 0.cl.temp_bin}
var prog := ProgramCode.DeserializeFrom(Context.Default,
System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream('0.cl.temp_bin')
);
// Дальше всё так же как в "0Простейшие примеры\SimpleAddition"
var A := new Buffer( 10 * sizeof(integer) );
prog['TEST'].Exec1(10,
A.NewQueue.AddFillValue(1)
);
A.GetArray1&<integer>.Println;
end.