summaryrefslogtreecommitdiff
path: root/utests/compiler_insert_vector.cpp
blob: c7c239f015788f845f8a67a840a78ca8c66bc1ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "utest_helper.hpp"

void compiler_insert_vector(void)
{
  const size_t n = 2048;

  // Setup kernel and buffers
  OCL_CREATE_KERNEL("compiler_insert_vector");
  OCL_CREATE_BUFFER(buf[0], 0, n * sizeof(int) * 4, NULL);
  OCL_SET_ARG(0, sizeof(cl_mem), &buf[0]);

  // Run the kernel
  globals[0] = n;
  locals[0] = 16;
  OCL_NDRANGE(1);
}

MAKE_UTEST_FROM_FUNCTION(compiler_insert_vector);