Skip to content

Commit

Permalink
add possible features for opencl3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shin0403 committed Oct 9, 2023
1 parent 35eb061 commit 64ae462
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/CL/devices/vortex/pocl-vortex.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ pocl_vortex_init (unsigned j, cl_device_id device, const char* parameters)
}

// TODO : change this to vortex mem size
device->global_mem_size = 4*1024*1024*1024; //MIN_MAX_MEM_ALLOC_SIZE;
device->global_mem_size = 3*1024*1024*1024; //MIN_MAX_MEM_ALLOC_SIZE;
device->max_mem_alloc_size=device->global_mem_size / 4;
POCL_MSG_WARN("GLOBAL_MEM_SIZE : %ld\n", device->global_mem_size);

device->vendor = "Georgia Tech";
Expand Down Expand Up @@ -374,8 +375,11 @@ pocl_vortex_init (unsigned j, cl_device_id device, const char* parameters)
device->data = d;

#if (HOST_DEVICE_CL_VERSION_MAJOR >= 3)
device->features = "__opencl_c_images";
// device->features = "__opencl_c_3d_image_writes __opencl_c_images __opencl_c_atomic_order_acq_rel __opencl_c_atomic_order_seq_cst __opencl_c_atomic_scope_device __opencl_c_program_scope_global_ variables __opencl_c_generic_address_space __opencl_c_subgroups __opencl_c_atomic_scope_all_devices __opencl_c_read_write_images __opencl_c_fp16 __opencl_c_fp64 __opencl_c_int64";
// TODO : opencl_3d_images, opencl_c_fp64 has some redefine issue, https://reviews.llvm.org/D106260.
//device->features = "__opencl_c_images";
// device->features = "__opencl_c_3d_image_writes __opencl_c_images __opencl_c_atomic_order_acq_rel __opencl_c_atomic_order_seq_cst __opencl_c_atomic_scope_device __opencl_c_program_scope_global_ variables __opencl_c_generic_address_space __opencl_c_subgroups __opencl_c_atomic_scope_all_devices __opencl_c_read_write_images __opencl_c_fp16 __opencl_c_fp64 __opencl_c_int64";
device->features = " __opencl_c_images __opencl_c_atomic_order_acq_rel __opencl_c_atomic_order_seq_cst __opencl_c_atomic_scope_device __opencl_c_program_scope_global_ variables __opencl_c_generic_address_space __opencl_c_subgroups __opencl_c_atomic_scope_all_devices __opencl_c_read_write_images __opencl_c_fp16 __opencl_c_int64";

device->program_scope_variables_pass = CL_TRUE;
device->generic_as_support = CL_TRUE;

Expand All @@ -395,7 +399,7 @@ pocl_vortex_init (unsigned j, cl_device_id device, const char* parameters)
" cl_khr_local_int32_extended_atomics");
strcat (extensions, "cl_khr_3d_image_writes"
"cl_khr_spir"
"cl_khr_fp64"
"cl_khr_fp16"
"cl_khr_int64_base_atomics"
"cl_khr_int64_extended_atomics"
"cl_khr_fp64");
Expand Down

0 comments on commit 64ae462

Please sign in to comment.