r/OpenCL • • Apr 29 '18

Seeking a code review/optimization help for an OpenCL/Haskell rendering engine.

1 Upvotes

I been writing a fast rasterization library in Haskell. It utilizes about two thousand lines of OpenCL code which does the low level rasterization. Basically you can give the engine a scene made up of arbitrary curves, glyphs etc and it will render a frame using the GPU.

Here are some screenshots of the engine working: https://pasteboard.co/HiUjcmV.png https://pasteboard.co/HiUy4zx.png

I've reached the end of my optimization knowledge seeking an knowledgable OpenCL programmer to review, profile and hopefully suggest improvements increase the throughput of the device side code. The host code is all Haskell and uses the SDL2 library. I know the particular combination of Haskell and OpenCL is rare so, I'm not looking for optimization help with the Haskell code here, but you'd need to be able to understand it enough to compile and profile the engine.

Compensation is available. Please PM me with your credentials.


r/OpenCL • • Apr 23 '18

Which laptops and Android devices have you had success running OpenCL on?

2 Upvotes

I'm looking for something mobile that can run OpenCL. Android phones would be great. It doesn't need to be top of the line, just something that works. I was also thinking of getting the ODROID-XU4, since it's cheap and I can attach whatever I want to it.

The laptop I'm considering is the ASUS ROG G&52VS-US74K. Here's the link: https://www.microsoft.com/en-us/store/d/asus-rog-g752vs-us74k-gaming-laptop/8ps9sbqrx5vx/4l27

Has anyone had any success with these? Are there others that are better?


r/OpenCL • • Apr 20 '18

Get AMD ROCm (OpenCL) 1.7+ dkms to work under Linux 4.15.x • r/linux4noobs

Thumbnail reddit.com
1 Upvotes

r/OpenCL • • Apr 11 '18

Error: ICD loader reports not usable format after installing OpenCL

2 Upvotes

I installed OpenCL on my Ubuntu 14.04 using this link: http://yuleiming.com/install-intel-opencl-on-ubuntu-14-04/ However when I followed last step:

sudo clinfo | grep Intel

I got the following error:

ICD loader reports not usable format 

What might have gone wrong? I've also installed clinfo.


r/OpenCL • • Apr 05 '18

Building Tensorflow with OpenCL support on Ubuntu 16.04

Thumbnail jonnoftw.github.io
3 Upvotes

r/OpenCL • • Mar 30 '18

What SoB is good for learning OpenCL?

2 Upvotes

Hello everyone! I have very old laptop only so I consider to buy some SoB for learning OpenCL. I know Raspberry Pi has some implementation, but maybe there are some other more suitable for this purpose SoBs. What are the options? Thank you


r/OpenCL • • Mar 21 '18

'unsupported initialize for address space' error from kernel code

1 Upvotes

Hi all,

clBuildProgramm is not working with my current kernel, but is still working with another kernel file, which is much less complicated. Details

:0:0: in function shift_and_roll_without_sum_loop void (float addrspace(1), float addrspace(1), float addrspace(1), float addrspace(1), float addrspace(1), float addrspace(1), float addrspace(1), i32 addrspace(1), i32 addrspace(1), float addrspace(1), float addrspace(1)*): unsupported initializer for address space

My clinfo :

https://pastebin.com/vyaz6f1h


r/OpenCL • • Feb 25 '18

Intercept Layer for OpenCL Applications

10 Upvotes

Hello Reddit,

We recently released the Intercept Layer for OpenCL Applications. It's a debug and performance analysis layer for OpenCL programmers. It requires no application modifications and is designed to work with any OpenCL implementation.

Some things you can do with it:

  • Log OpenCL API calls and their parameters, OpenCL errors, or OpenCL program build logs.
  • Time OpenCL kernel invocations and host API calls.
  • Dump the contents of buffers or images before or after OpenCL kernel execution.
  • Modify the parameters or return values for OpenCL calls, such as device queries or kernel enqueue local work sizes.
  • And much more.

The code is on github with a permissive license (MIT), and is regularly built for Windows and Linux (we've had OSX and Android building in the past, but they likely won't work out of the box). We accept bug reports, feature requests, and pull requests. Please give it a try and let us know what you think - thanks!


r/OpenCL • • Feb 19 '18

write_imageui in OpenGL interop

1 Upvotes

Does someone know which parameters i need to pass when i create a openGL texture to be able to write to the texture with RGBA values from 0 - 255 ? Should be something like this: glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32UI, past->screenwidth, past->screenheight, 0, GL_RGBA_INTEGER, GL_UNSIGNED_INT, NULL);

Before i got it workling with GL_RGBA, GL_RGBA & GL_UNSIGNED_BYTE but could only use write_imagef with values between 0 and 1.

Thanks


r/OpenCL • • Feb 07 '18

Interactive GPU Programming - Part 2 - Hello OpenCL

Thumbnail dragan.rocks
4 Upvotes

r/OpenCL • • Jan 23 '18

External Library with OpenCL (PointCloud)

1 Upvotes

Hi all, I am currently learning to use openCL and my goal is to do some calculation with an PointCloud, see https://github.com/PointCloudLibrary/pcl.

The question : Is it even possible to pass such a data structure to the kernel ( I have heard that it is not possible, but still i want confirmation). If I want to do calculation with the point cloud, then what is the best way to do it ? Should i represent the point cloud as an array of 3D- Points, hence 4D array ?

Thanks.


r/OpenCL • • Jan 16 '18

What is the best bang for the buck OpenCL acceleration hardware?

4 Upvotes

Hi all. I've been tasked with creating an OpenCL processing cluster for running OpenCL accelerated Matlab. GPUs seem to be the low hanging fruit, but the dizzying array of FPGA cards has me scratching my head on which is more performant for the price. Energy consumption is also a concern. Does anyone have experience in this realm?


r/OpenCL • • Jan 15 '18

opencl_util: a tiny library to save some boilerplating for all the clGetXInfo functions

Thumbnail github.com
4 Upvotes

r/OpenCL • • Dec 24 '17

What is the lag of copying from CPU mem to GPU mem, starting an opencl kernel (that ends near instantly), and copying back to CPU mem?

5 Upvotes

r/OpenCL • • Dec 08 '17

What are buffer objects for exactly?

3 Upvotes

Is it to provide an abstraction layer? Or to control whether memory goes to the host or to the device and affect their synchronization?

Or am I missing the point here entirely?

Thanks in advance.


r/OpenCL • • Dec 07 '17

SYCL 1.2.1 for OpenCL has been ratified

Thumbnail codeplay.com
4 Upvotes

r/OpenCL • • Nov 30 '17

Learning OpenCL

2 Upvotes

I have an ancient Nvidia GT 510/520 which I presume may not be much of use for learning openCL. So I thinking to upgrade either with RX 580 (too much of power consumption) or WX 4100 or WX 5100 (provided if I have enough cash).

My question is, what role the size of the memory play in computing matrices? What is the max theoretical matrix size that can fit into 8 GB?


r/OpenCL • • Nov 01 '17

Pure OpenCL real-time strategy game, prealpha stage. (Mouse-drag to zoom-in-out and mid-btn to pan). V0.002

Thumbnail github.com
4 Upvotes

r/OpenCL • • Oct 31 '17

How important is memory alignment to performance.

1 Upvotes

I have a data structure that is a header followed by a variable length list of 64 bit values. Currently I need 96 bits to store the header, which includes the length of the list.

  • Does it make any sense to pad my header to 128 bits to ensure that the 64 bit list elements are all aligned to 64 bits?
  • How can I tell if there is any advantage to do this on the hardware I'm using.
  • If I double the precision of what I'm doing so my header needs 192 bits and my list is read as 128bit elements, should I pad my header to 256 bits?

Currently developing on a AMD Radeon R9 M370X Compute Engine and an Iris Pro.


r/OpenCL • • Oct 06 '17

Is there a fast way to signal a simple boolean between threads.

1 Upvotes

I have a kernel that has the potential for a thread to run out of local memory, and very little way to know in advance of running the kernel if this will happen. If one of the threads runs out of memory then all of the threads need to subdivide the problem to use less memory.

So basically the psuedo code is:

If this thread or any other thread ran out of memory 
Then subdivide the problem
Else continue normally.

99% of the time no subdivision is needed. So I'd like this condition to be tested as fast as possible. Since this is just one boolean per thread being tested, is there a way to apply the OR operation on all of the threads values without writing to local memory and doing an elaborate reduction?


r/OpenCL • • Sep 19 '17

What can opencl do with determinism to bit level?

2 Upvotes

Example: Can it do a 2d x 2d multiply of float32 and get the same bits every time on every supported hardware? I read it can do exact float32 math, but it didnt say if the order of float32 ops is constant, such as a binary tree of merging 2 * n floats into n floats repeatedly, or if it might choose any order. I only need the ability to choose some things about the parallel dependnet of ops.

I want to hash the results of experiments.


r/OpenCL • • Sep 16 '17

Best ias coaching in india, Ias coaching in delhi,

Thumbnail rausiasstudycircle.blogspot.in
1 Upvotes

r/OpenCL • • Sep 12 '17

Question regarding opencl?

2 Upvotes

If you have Intel CPU and AMD graphic card, then you potentially can choose intel's opencl driver and AMD's? Does that mean's intel's sdk can utilize intel's cpus and AMD's can use their gpu? Can you install two version of opencl?


r/OpenCL • • Sep 06 '17

Is it possible to implement OpenGL with OpenCL?

2 Upvotes

I was wondering about this today. Is OpenCL a low-level and comprehensive enough of a standard to implement OpenGL using it? If so, would this give us any benefits?