File tree Expand file tree Collapse file tree 6 files changed +6
-8
lines changed
libclc/generic/lib/workitem Expand file tree Collapse file tree 6 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 99#include <clc/clc.h>
1010#include <spirv/spirv.h>
1111
12- _CLC_DEF size_t get_global_offset (uint dim ) {
12+ _CLC_DEF _CLC_OVERLOAD size_t get_global_offset (uint dim ) {
1313 switch (dim ) {
1414 case 0 : return __spirv_GlobalOffset_x ();
1515 case 1 : return __spirv_GlobalOffset_y ();
Original file line number Diff line number Diff line change 99#include <clc/clc.h>
1010#include <spirv/spirv.h>
1111
12- _CLC_DEF size_t get_group_id (uint dim ) {
12+ _CLC_DEF _CLC_OVERLOAD size_t get_group_id (uint dim ) {
1313 switch (dim ) {
1414 case 0 : return __spirv_WorkgroupId_x ();
1515 case 1 : return __spirv_WorkgroupId_y ();
Original file line number Diff line number Diff line change 99#include <clc/clc.h>
1010#include <spirv/spirv.h>
1111
12- _CLC_DEF size_t get_local_id (uint dim ) {
12+ _CLC_DEF _CLC_OVERLOAD size_t get_local_id (uint dim ) {
1313 switch (dim ) {
1414 case 0 : return __spirv_LocalInvocationId_x ();
1515 case 1 : return __spirv_LocalInvocationId_y ();
Original file line number Diff line number Diff line change 99#include <clc/clc.h>
1010#include <spirv/spirv.h>
1111
12- _CLC_DEF size_t get_local_size (uint dim ) {
12+ _CLC_DEF _CLC_OVERLOAD size_t get_local_size (uint dim ) {
1313 switch (dim ) {
1414 case 0 : return __spirv_WorkgroupSize_x ();
1515 case 1 : return __spirv_WorkgroupSize_y ();
Original file line number Diff line number Diff line change 99#include <clc/clc.h>
1010#include <spirv/spirv.h>
1111
12- _CLC_DEF size_t get_num_groups (uint dim ) {
12+ _CLC_DEF _CLC_OVERLOAD size_t get_num_groups (uint dim ) {
1313 switch (dim ) {
1414 case 0 : return __spirv_NumWorkgroups_x ();
1515 case 1 : return __spirv_NumWorkgroups_y ();
Original file line number Diff line number Diff line change 99#include <clc/clc.h>
1010#include <spirv/spirv.h>
1111
12- _CLC_DEF uint get_work_dim (void ) {
13- return __spirv_WorkDim ();
14- }
12+ _CLC_DEF _CLC_OVERLOAD uint get_work_dim (void ) { return __spirv_WorkDim (); }
You can’t perform that action at this time.
0 commit comments