Skip to content

Commit

Permalink
v5.0.0 headers
Browse files Browse the repository at this point in the history
  • Loading branch information
SkillfulElectro authored Sep 8, 2024
1 parent 8249430 commit a08ffe9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions header_files/EMCompute.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ typedef struct DataBinder {
*/
uintptr_t data_len;
/**
* pointer to your data in memory , it must be
* uint8_t* (*mut u8 in Rust side)
* address of pointer (since v5.0.0) which holds your data in memory , it must be
* uint8_t** (*mut *mut u8 in Rust side)
* in gpu side the type of this data will
* be set based on CKernel code you provided
*/
uint8_t *data;
uint8_t **data;
} DataBinder;

/**
Expand Down
6 changes: 3 additions & 3 deletions header_files/EMCompute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ struct DataBinder {
///
/// sizeof(your type) * real_len_of_your_array / sizeof(uint8_t)
uintptr_t data_len;
/// pointer to your data in memory , it must be
/// uint8_t* (*mut u8 in Rust side)
/// address of pointer (since v5.0.0) which holds your data in memory , it must be
/// uint8_t** (*mut *mut u8 in Rust side)
/// in gpu side the type of this data will
/// be set based on CKernel code you provided
uint8_t *data;
uint8_t **data;
};

/// all DataBinder types which have
Expand Down
6 changes: 3 additions & 3 deletions header_files/EMCompute.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ cdef extern from *:
#
# sizeof(your type) * real_len_of_your_array / sizeof(uint8_t)
uintptr_t data_len;
# pointer to your data in memory , it must be
# uint8_t* (*mut u8 in Rust side)
# address of pointer (since v5.0.0) which holds your data in memory , it must be
# uint8_t** (*mut *mut u8 in Rust side)
# in gpu side the type of this data will
# be set based on CKernel code you provided
uint8_t *data;
uint8_t **data;

# all DataBinder types which have
# the same @group index in your kernel
Expand Down

0 comments on commit a08ffe9

Please sign in to comment.