Skip to content

Commit

Permalink
Merge pull request #427 from scchan/re-enable_thread_index_opt
Browse files Browse the repository at this point in the history
Re enable thread index opt
  • Loading branch information
whchung committed Aug 16, 2017
2 parents b8f7d6c + fc6a2e9 commit abbf79f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion include/coordinate
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public:
}
};

extern "C" __attribute__((const)) __int64_t amp_get_global_id(unsigned int n) restrict(amp);
extern "C" __attribute__((const)) uint32_t amp_get_global_id(unsigned int n) restrict(amp);

template<size_t N> class offset;

Expand Down
24 changes: 12 additions & 12 deletions include/hc_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ namespace hc {
//
// work-item related builtin functions
//
extern "C" __attribute__((const,hc)) int64_t hc_get_grid_size(unsigned int n);
extern "C" __attribute__((const,hc)) int64_t hc_get_workitem_absolute_id(unsigned int n);
extern "C" __attribute__((const,hc)) int64_t hc_get_group_size(unsigned int n);
extern "C" __attribute__((const,hc)) int64_t hc_get_workitem_id(unsigned int n);
extern "C" __attribute__((const,hc)) int64_t hc_get_num_groups(unsigned int n);
extern "C" __attribute__((const,hc)) int64_t hc_get_group_id(unsigned int n);
extern "C" __attribute__((const,hc)) uint32_t hc_get_grid_size(unsigned int n);
extern "C" __attribute__((const,hc)) uint32_t hc_get_workitem_absolute_id(unsigned int n);
extern "C" __attribute__((const,hc)) uint32_t hc_get_group_size(unsigned int n);
extern "C" __attribute__((const,hc)) uint32_t hc_get_workitem_id(unsigned int n);
extern "C" __attribute__((const,hc)) uint32_t hc_get_num_groups(unsigned int n);
extern "C" __attribute__((const,hc)) uint32_t hc_get_group_id(unsigned int n);

extern "C" __attribute__((const,amp)) int64_t amp_get_global_size(unsigned int n);
extern "C" __attribute__((const,amp)) int64_t amp_get_global_id(unsigned int n);
extern "C" __attribute__((const,amp)) int64_t amp_get_local_size(unsigned int n);
extern "C" __attribute__((const,amp)) int64_t amp_get_local_id(unsigned int n);
extern "C" __attribute__((const,amp)) int64_t amp_get_num_groups(unsigned int n);
extern "C" __attribute__((const,amp)) int64_t amp_get_group_id(unsigned int n);
extern "C" __attribute__((const,amp)) uint32_t amp_get_global_size(unsigned int n);
extern "C" __attribute__((const,amp)) uint32_t amp_get_global_id(unsigned int n);
extern "C" __attribute__((const,amp)) uint32_t amp_get_local_size(unsigned int n);
extern "C" __attribute__((const,amp)) uint32_t amp_get_local_id(unsigned int n);
extern "C" __attribute__((const,amp)) uint32_t amp_get_num_groups(unsigned int n);
extern "C" __attribute__((const,amp)) uint32_t amp_get_group_id(unsigned int n);

#if __KALMAR_ACCELERATOR__ == 2
#define tile_static thread_local
Expand Down
2 changes: 1 addition & 1 deletion rocdl
Submodule rocdl updated from 6f09e8 to a57dee

0 comments on commit abbf79f

Please sign in to comment.