Esempio n. 1
0
void
pocl_hsa_init_device_infos(struct _cl_device_id* dev)
{
  pocl_basic_init_device_infos (dev);
  dev->type = CL_DEVICE_TYPE_GPU;
  dev->spmd = CL_TRUE;
  dev->llvm_target_triplet = "amdgcn--amdhsa";
  dev->llvm_cpu = "kaveri";
  dev->has_64bit_long = 1;
  /* TODO: probe from HSA */
  dev->max_mem_alloc_size = 512*1024*2014;
}
Esempio n. 2
0
void
pocl_cuda_init_device_infos (struct _cl_device_id *dev)
{
  pocl_basic_init_device_infos (dev);

  dev->type = CL_DEVICE_TYPE_GPU;
  dev->address_bits = (sizeof (void *) * 8);
  dev->llvm_target_triplet = (sizeof (void *) == 8) ? "nvptx64" : "nvptx";
  dev->spmd = CL_TRUE;
  dev->workgroup_pass = CL_FALSE;
  dev->execution_capabilities = CL_EXEC_KERNEL;

  dev->global_as_id = 1;
  dev->local_as_id = 3;
  dev->constant_as_id = 1;

  // TODO: Get images working
  dev->image_support = CL_FALSE;
}