mali

Zero Copy Buffers using cl_arm_import_memory extension in OpenCL 1.2 - arm mali midgard GPUs

女生的网名这么多〃 提交于 2020-01-25 02:48:52
问题 I wish to allocate a vector and use it's data pointer to allocate a zero copy buffer on the GPU. There is this cl_arm_import_memory extension which can be used to do this. But I am not sure wether its supported for all mali midgard OpenCL drivers or not. I was going through this link and I am quite puzzled by the following lines : - If the extension string cl_arm_import_memory_host is exposed then importing from normal userspace allocations (such as those created via malloc) is supported.

Zero Copy Buffers using cl_arm_import_memory extension in OpenCL 1.2 - arm mali midgard GPUs

◇◆丶佛笑我妖孽 提交于 2020-01-25 02:48:47
问题 I wish to allocate a vector and use it's data pointer to allocate a zero copy buffer on the GPU. There is this cl_arm_import_memory extension which can be used to do this. But I am not sure wether its supported for all mali midgard OpenCL drivers or not. I was going through this link and I am quite puzzled by the following lines : - If the extension string cl_arm_import_memory_host is exposed then importing from normal userspace allocations (such as those created via malloc) is supported.

OpenCL : Querying max clock frequency of a mobile GPU always returns a lesser value

牧云@^-^@ 提交于 2020-01-24 15:48:08
问题 In order to know the max clock frequency of a Mali T760 GPU, I used the code snippet below: // Get device max clock frequency cl_uint max_clock_freq; err_num = clGetDeviceInfo(cl_devices[device_idx], CL_DEVICE_MAX_CLOCK_FREQUENCY, sizeof(max_clock_freq), &max_clock_freq, NULL); check_cl_error(err_num, "clGetDeviceInfo: Getting device max clock frequency"); printf("CL_DEVICE_MAX_CLOCK_FREQUENCY: %d MHz\n", max_clock_freq); Full source code available here: https://github.com/sivagnanamn/opencl

Determine limiting factor of OpenCL workgroup size?

烂漫一生 提交于 2020-01-04 02:44:10
问题 I am trying to run some OpenCL kernels written for desktop graphics cards on an embedded GPU with less resources. In particular, the desktop version assumes a work group size of at least 256 is always supported, but the Mali T628 ARM-based GPU only guarantees 64+ work group size. Indeed, some kernels report CL_KERNEL_WORK_GROUP_SIZE of only 64, and I can't figure out why. I checked the CL_KERNEL_LOCAL_MEM_SIZE for the kernels in question and it is <2 KiB, whereas the CL_DEVICE_LOCAL_MEM_SIZE

Optimizing performance of a heavy fragment shader

青春壹個敷衍的年華 提交于 2019-12-12 14:06:16
问题 I need help optimizing the following set of shaders: Vertex: precision mediump float; uniform vec2 rubyTextureSize; attribute vec4 vPosition; attribute vec2 a_TexCoordinate; varying vec2 tc; void main() { gl_Position = vPosition; tc = a_TexCoordinate; } Fragment: precision mediump float; /* Uniforms - rubyTexture: texture sampler - rubyTextureSize: size of the texture before rendering */ uniform sampler2D rubyTexture; uniform vec2 rubyTextureSize; uniform vec2 rubyTextureFract; /* Varying

Android OpenGL ES not rasterizing - Matrix multiplication switched

ⅰ亾dé卋堺 提交于 2019-12-06 01:23:32
I just bought a new SGS3 (I9300 - NOT LTE ) and hoped to continue with developing an OpenGL ES (2) application. Unfortunately when I compile it I don't see anything. I get the following LogCat error messages: D/libEGL(6890): loaded /system/lib/egl/libEGL_mali.so D/libEGL(6890): loaded /system/lib/egl/libGLESv1_CM_mali.so D/libEGL(6890): loaded /system/lib/egl/libGLESv2_mali.so E/(6890): Device driver API match E/(6890): Device driver API version: 23 E/(6890): User space API version: 23 E/(6890): mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Wed Oct 9 21:05:57 KST 2013** D/OpenGLRenderer(6890):

is it possible to execute OpenCL code on ARM CPU (Cortex-a7) using the Mali OpenCL SDK?

会有一股神秘感。 提交于 2019-12-01 04:58:37
问题 Mali OpenCL SDK allows executing opencl code on the Mali GPU. Is it possible to execute OpenCL code on ARM CPU (Cortex-a7) using the Mali OpenCL SDK? 回答1: Not at present - ARM have only publicly released drivers that support OpenCL on Mali GPUs. However, a couple of months ago they passed conformance for OpenCL running on an ARM CPU, so one might expect that this will be possible in the future: (from the Khronos conformant products page) ARM Limited 2014-06-13 OpenCL_1_1 Linux 3.9.0 with ARM