File tree 6 files changed +6
-8
lines changed
libclc/generic/lib/workitem 6 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 9
9
#include <clc/clc.h>
10
10
#include <spirv/spirv.h>
11
11
12
- _CLC_DEF size_t get_global_offset (uint dim ) {
12
+ _CLC_DEF _CLC_OVERLOAD size_t get_global_offset (uint dim ) {
13
13
switch (dim ) {
14
14
case 0 : return __spirv_GlobalOffset_x ();
15
15
case 1 : return __spirv_GlobalOffset_y ();
Original file line number Diff line number Diff line change 9
9
#include <clc/clc.h>
10
10
#include <spirv/spirv.h>
11
11
12
- _CLC_DEF size_t get_group_id (uint dim ) {
12
+ _CLC_DEF _CLC_OVERLOAD size_t get_group_id (uint dim ) {
13
13
switch (dim ) {
14
14
case 0 : return __spirv_WorkgroupId_x ();
15
15
case 1 : return __spirv_WorkgroupId_y ();
Original file line number Diff line number Diff line change 9
9
#include <clc/clc.h>
10
10
#include <spirv/spirv.h>
11
11
12
- _CLC_DEF size_t get_local_id (uint dim ) {
12
+ _CLC_DEF _CLC_OVERLOAD size_t get_local_id (uint dim ) {
13
13
switch (dim ) {
14
14
case 0 : return __spirv_LocalInvocationId_x ();
15
15
case 1 : return __spirv_LocalInvocationId_y ();
Original file line number Diff line number Diff line change 9
9
#include <clc/clc.h>
10
10
#include <spirv/spirv.h>
11
11
12
- _CLC_DEF size_t get_local_size (uint dim ) {
12
+ _CLC_DEF _CLC_OVERLOAD size_t get_local_size (uint dim ) {
13
13
switch (dim ) {
14
14
case 0 : return __spirv_WorkgroupSize_x ();
15
15
case 1 : return __spirv_WorkgroupSize_y ();
Original file line number Diff line number Diff line change 9
9
#include <clc/clc.h>
10
10
#include <spirv/spirv.h>
11
11
12
- _CLC_DEF size_t get_num_groups (uint dim ) {
12
+ _CLC_DEF _CLC_OVERLOAD size_t get_num_groups (uint dim ) {
13
13
switch (dim ) {
14
14
case 0 : return __spirv_NumWorkgroups_x ();
15
15
case 1 : return __spirv_NumWorkgroups_y ();
Original file line number Diff line number Diff line change 9
9
#include <clc/clc.h>
10
10
#include <spirv/spirv.h>
11
11
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