Update document for workaround suggestion on threadfence_system()

Change-Id: Icccab8270604a0e578a8614b9afb3f95372f4966


[ROCm/hip commit: 774de273d0]
This commit is contained in:
pensun
2016-11-02 16:08:27 -05:00
rodzic 959880e318
commit 9251040786
2 zmienionych plików z 2 dodań i 3 usunięć
@@ -233,8 +233,7 @@ typedef struct dim3 {
## Memory-Fence Instructions
HIP supports __threadfence() and __threadfence_block().
Applications that use threadfence_system can disable the L1 and L2 caches on the GPU by:
"export HSA_DISABLE_CACHE=1". See the hip_porting_guide.md#threadfence_system for more information.
Support for threadfence_system() is under development.
## Synchronization Functions
The __syncthreads() built-in function is supported in HIP. The __syncthreads_count(int), __syncthreads_and(int) and __syncthreads_or(int) functions are under development.
@@ -556,7 +556,7 @@ extern "C" __device__ void __threadfence(void);
*
* @param void
*
* @warning __threadfence_system is a stub and map to no-op, application should set "export HSA_DISABLE_CACHE=1" to disable both L1 and L2 caches.
* @warning __threadfence_system is a stub and map to no-op.
*/
__device__ void __threadfence_system(void) __attribute__((deprecated("Provided for compile-time compatibility, not yet functional")));