gpu-atomics Questions

1

Solved

Example code Here is a bare-bones compute shader to illustrate my question layout(local_size_x = 64) in; // Persistent LIFO structure with a count of elements layout(std430, binding = 0) restric...
Lonilonier asked 5/12, 2017 at 20:17

1

Solved

In Cuda C++, I have a big array Arr of integers, and a function F: int -> int. I want to find the first index of some items in Arr that makes F maximal. How can I write a kernel that always keep...
Rumery asked 6/12, 2022 at 23:1

2

Solved

I was wondering if there is a complete list of atomic operations usable in CUDA kernels. I couldn't find something like that on the internet.
Pandarus asked 2/8, 2012 at 7:47

2

Solved

I'd like to implement this atomic function in CUDA: __device__ float lowest; // global var __device__ int lowIdx; // global var float realNum; // thread reg var int index; // thread reg var if(re...
Mambo asked 1/7, 2013 at 18:46

1

Currently I develop a GPU-based program that use multiple kernels that are launched concurrently by using multiple streams. In my application, multiple kernels need to access a queue/stack and I h...
Dropout asked 23/12, 2013 at 8:8

1

Solved

For using atomic operations in CUDA, is it necessary to include some CUDA header file? The CUDA programming guide seems to be tightlipped on this. The code glmax.cu given below is giving me the f...
Rodolforodolph asked 3/11, 2011 at 21:45
1

© 2022 - 2025 — McMap. All rights reserved.