Some atomic functions are missing?

Hi guys,

I am in great need of a float min atomic device function. I checked the documentation and it seems that it doesn’t exist yet. If it doesn’t exist, can it be implemented manually? And if so, how?

KR,

Garko

It can be implemented manually using the general template for custom atomics given in the programming guide:

https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#atomic-functions

This may also be of interest:

https://stackoverflow.com/questions/17399119/cant-we-use-atomic-operations-for-floating-point-variables-in-cuda

And this:

https://devtalk.nvidia.com/default/topic/492068/atomicmin-with-float/