# TestCudaAtomic **Repository Path**: stoneforestwhu/test-cuda-atomic ## Basic Information - **Project Name**: TestCudaAtomic - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-19 - **Last Updated**: 2025-06-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README vcc -o test_atomic_cmp_xchg cuda_atomic_cmp_xchg.cu -gencode=arch=compute_89,code=sm_89 | op0 | op1 | result | note | | --------------- | --------- | ------ | -------------------------------- | | +inf | -inf | NAN | | | +inf | +inf | +inf | | | -inf | -inf | -inf | | | normal/denormal | +inf | +inf | | | normal/denormal | -inf | -inf | | | NAN | +inf | NAN | | | NAN | -inf | NAN | | | +denormal | +denormal | +0 | | | -denormal | -denormal | -0 | | | +denormal | -denormal | +0 | 不论\|op0\|和\|op1\|的值谁大谁小 | | +normal | +normal | +inf | op0+op1 >= +inf | | -normal | -normal | -inf | op0+op1 <= -inf | | +normal | -normal | +0 | op0+op1 == +denormal | | +normal | -normal | -0 | op0+op1 == -denormal | | +0 | +denormal | +0 | | | +0 | -denormal | +0 | | | -0 | +denormal | +0 | | | -0 | -denormal | -0 | |