summaryrefslogtreecommitdiff
path: root/utests/runtime_createcontext.cpp
blob: f08a18983496c5513d47a041a97244cc5fb06f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "utest_helper.hpp"

void runtime_createcontextfromtype(void) {
  cl_int status;

  cl_context ctx;
  ctx = clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU, NULL, NULL, &status);
  if (ctx == NULL) {
    OCL_THROW_ERROR("runtime_createcontextfromtype", status);
  }
  clReleaseContext(ctx);
}

MAKE_UTEST_FROM_FUNCTION(runtime_createcontextfromtype);