dev->max_images_write());
case CL_DEVICE_MAX_MEM_ALLOC_SIZE:
- return scalar_property<cl_ulong>(buf, size, size_ret, 0);
+ return scalar_property<cl_ulong>(buf, size, size_ret,
+ dev->max_mem_alloc_size());
case CL_DEVICE_IMAGE2D_MAX_WIDTH:
case CL_DEVICE_IMAGE2D_MAX_HEIGHT:
pipe, PIPE_COMPUTE_CAP_MAX_THREADS_PER_BLOCK)[0];
}
+cl_ulong
+_cl_device_id::max_mem_alloc_size() const {
+ return get_compute_param<uint64_t>(pipe,
+ PIPE_COMPUTE_CAP_MAX_MEM_ALLOC_SIZE)[0];
+}
+
std::vector<size_t>
_cl_device_id::max_block_size() const {
auto v = get_compute_param<uint64_t>(pipe, PIPE_COMPUTE_CAP_MAX_BLOCK_SIZE);
cl_ulong max_const_buffer_size() const;
cl_uint max_const_buffers() const;
size_t max_threads_per_block() const;
+ cl_ulong max_mem_alloc_size() const;
std::vector<size_t> max_block_size() const;
std::string device_name() const;