Jing's ds_read inline asm

This commit is contained in:
Chao Liu
2019-03-28 19:46:29 -05:00
parent 766b0a9eaf
commit d6d9a8e4ce
6 changed files with 126 additions and 25 deletions

View File

@@ -5,6 +5,8 @@
#include "Array.hip.hpp"
#include "functional.hip.hpp"
extern "C" __attribute__((address_space(3))) void* __to_local(void* p)[[hc]];
__device__ index_t get_thread_local_1d_id() { return threadIdx.x; }
__device__ index_t get_block_1d_id() { return blockIdx.x; }