Questions tagged [opencl]

OpenCL (Open Computing Language) is a framework for writing programs that execute across heterogeneous platforms consisting of CPUs, GPUs, DSPs, FPGAs and other processors or hardware accelerators.

14 questions
19
votes
1 answer

Why is recursion forbidden in OpenCL?

I'd like to use OpenCL to accelerate rendering of raytraced images, but I notice that the Wikipedia page claims that recursion is forbidden in Open CL. Is this true? As I make extensive use of recursion when raytracing, this will require a…
11
votes
1 answer

What is my GPU waiting on?

I am writing an OpenCL program for use with my AMD Radeon HD 7800 series GPU. According to AMD's OpenCL programming guide, this generation of GPU has two hardware queues that can operate asynchronously. 5.5.6 Command Queue For Southern Islands and…
Mokosha
  • 1,124
  • 7
  • 23
9
votes
1 answer

Compute Shader vs CUDA/OpenCL

So I just recently learned about the Compute Shader and it looks from what I have picked up the same idea as parallel programming you would do with CUDA or OpenCL, but in the shader pipeline. If I want to draw a million cubes in a scene should I be…
FrickeFresh
  • 213
  • 2
  • 6
7
votes
2 answers

OpenCL doesn't detect GPU

I installed AMD APP SDK and here my problem. The OpenCL samples do not detect the GPU. HelloWorld give me this: [thomas@Clemence:/opt/AMDAPP/samples/opencl/bin/x86_64]$ ./HelloWorld No GPU device available. Choose CPU as default device. input…
Thomas BRAUD
  • 71
  • 1
  • 1
  • 2
5
votes
1 answer

What parts of unbiased path tracing pipeline can benefit from OpenCL?

After looking at a lot of existing implementations, I am currently implementing a path tracer in OpenCL. However there seems to be divergence to what parts of the pipeline can actually benefit from OpenCL acceleration. So is it possible to construct…
Lennart Rolland
  • 315
  • 1
  • 4
2
votes
1 answer

OpenCL ray tracer: which is better, geometry code on device side or on host side?

I am writing a ray tracer using openCL, and following this tutorial http://raytracey.blogspot.com/2016/11/opencl-path-tracing-tutorial-2-path.html However, I find that the author has two copies of the Sphere code, one in host in c++ and one in…
Manh Nguyen
  • 309
  • 3
  • 8
2
votes
1 answer

CUDA/OpenCL vs OpenGL compute shader for Path tracer

So I want to implement a path tracer and I am confused between GPGPU computing or using OpenGL's compute shaders. I've already implemented a raytracer using GL's compute shaders. What are the main differences between CUDA/OpenCL and CS? And is it…
gallickgunner
  • 2,353
  • 1
  • 10
  • 32
1
vote
0 answers

Why cache working set per multiprocessor for texture memory in Nvidia has a variable size?

I saw it here https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#features-and-technical-specifications__technical-specifications-per-compute-capability , I don't know if it also happens for AMD.
alvaro9650
  • 11
  • 1
1
vote
1 answer

Writing OpenCL Shaders

I want to write (fragment) shaders in OpenCL rather than GLSL. Is there a standard mechanism for this (from OpenGL, and ideally also from DirectX)? Are there any drawbacks to doing this? I also want to write screenspace effects in OpenCL. Is the…
barneypitt
  • 151
  • 3
1
vote
1 answer

What framework shoud I use to implement the RAISR upscaling algorithm on the GPU?

I recently ran across the paper RAISR: Rapid and Accurate Image Super Resolution and thought it seemed like an interesting technique for scaling up images. However, I haven't seen any implementation of it, and I would like to see what it would be…
HelloGoodbye
  • 139
  • 4
1
vote
1 answer

Path tracing - colors/shadows sharper than they should be

Problem description When comparing Cornell Box image generated by my path tracer I noticed that colors are much more sharp/saturated (don't know specific term) than they should be. Comparison (on the left mine and on the right how it should look -…
1
vote
0 answers

parallelizing a software rasterizer algorithm using opencl

I've written a small software rasterizer using OpenCL and would like to optimize and parallelize it more, currently I'm scanning the whole screen and see if the triangle overlaps with the pixels.. I would like to parallelize the loop and do it more…
Ahmed Saleh
  • 141
  • 4
0
votes
0 answers

How to achieve higher FPS for my GPU pathtracer?

So I've written a GPU based pathtracer using OpenCL-GL interoperability. The system uses the Mega-Kernel Approach instead of a wavefront one as I was aiming it as an educational software for other young people who wanted to dive into…
gallickgunner
  • 2,353
  • 1
  • 10
  • 32
0
votes
0 answers

Projecting one Quadratic Bezier Curve Onto Another

I'm working on improving an open source rasterization library called Gudni that I started a few years ago. It's source repository and the branch I'm currently working on are here: https://github.com/ianmbloom/gudni/tree/texturetransformation. I'm…
Ian Bloom
  • 1
  • 2