Questions tagged [compute-shader]

78 questions
5
votes
1 answer

Threads lockstep and conditions in compute shader

I'm working with DirectCompute, but this question can be applied to general gpu programming I suppose. As far as I know the threads in a group works in a lockstep. It means that every instruction for every thread executes at the same time, right?…
nikitablack
  • 711
  • 4
  • 15
1
vote
2 answers

GLSL Compute Shader Workgroup Execution

I want to know about "If there is branch command in compute shader, and it leads some workgroup ends earlier than others, then will the 'processing units' allocated for that workgroup be used for another workgroup which is not processed yet?(before…
idev
  • 13
  • 2
1
vote
1 answer

Partial Workgroup release of compute shaders?

When using compute shaders, some workgroups can be faster than others, for example when all invocations within one group go into the 'if' case, where on another workgroup the invocations go into the 'if' and the 'else' case. My question: are the…
Thomas
  • 1,245
  • 1
  • 4
  • 16
1
vote
1 answer

Workgroup size performance change?

I know, that when using compute shader, the invocations should to be grouped with respect to a multiple of the hardware minimum workgroup size (Nvidia 32, AMD 64). Otherwise cores are blocked. In case of no communication between invocations is…
Thomas
  • 1,245
  • 1
  • 4
  • 16
0
votes
0 answers

Is it possible to put matrix computation in Compute Shader?

With the library glm, we can do matrix computations on the CPU. However, the GPU is more suitable to do this. So what if I put the matrix computations in a Compute Shader? Will it be faster? If it is possible, it will be really nice for C, as doing…