2
0
mirror of https://github.com/boostorg/compute.git synced 2026-01-20 16:32:26 +00:00
Files
compute/test/data/program.cl
Jakub Szuppe d1bc634fc5 Add tests for creating program with IL
For testing boost::compute::program::create_with_il() 32- and 64-bit
SPIR-V binaries were added to test/data dir. File test/data/program.cl
contains OpenCL C source code of those binaries.
2017-05-23 00:06:12 +02:00

16 lines
538 B
Common Lisp

//---------------------------------------------------------------------------//
// Copyright (c) 2017 Jakub Szuppe <j.szuppe@gmail.com>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
// See http://boostorg.github.com/compute for more information.
//---------------------------------------------------------------------------//
__kernel void foobar(__global int* x)
{
const int gid = get_global_id(0);
x[gid] = gid;
}