[A,oldA] = gpucoder.atomicCAS(A,B,C) は、B をグローバル メモリまたは共有メモリの A の値と比較し、値が同じ場合は C の値を A に書き込みます。この演算は、読み取り、変更、書き込みの操作全体が他のスレッドからの干渉なしに実行されることが保証されているという意味でアトミックです。入力引数と出力引数の順序は、構文の規定と一致しなければなりません。
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.