I am trying to use atomic CAS operation in DPA threads. I have tried to use both atomic_compare_exchange_strong() from <stdatomic.h> and __dpa_remote_atomic_compare_exchange() from <dpaintrin.h>.
If I use atomic_compare_exchange_strong() I am getting following compilation error for -mcpu=nv-dpa-bf3 target:
error: builtin not supported for current target CPU
If I use __dpa_remote_atomic_compare_exchange() I am getting following compilation error for -mcpu=nv-dpa-bf3 target:
error: call to undeclared function '__dpa_remote_atomic_compare_exchange'; ISO C99 and later do not support implicit function declarations
Is CAS supported for BF3 DPA? Is there any other way to use it?
To answer we may need to check the DPA code you are trying to run, and if stdatomic.h is properly included in the code( include <stdatomic.h>), as well as dpacc command line you are running.
In order to proceed with this, a new support case will be required.
To Create a New Enterprise Support Case Please Use One of the Following Methods
1. Log in and Create a Case in the Enterprise Support Portal
This is recommended and will provide the fastest response