Skip to content

Commit

Permalink
Add image_int_ptr and coeff_int_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrepaleo committed Dec 11, 2019
1 parent 08e1bd6 commit 3d7da10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/wt.cu
Original file line number Diff line number Diff line change
Expand Up @@ -656,15 +656,14 @@ int Wavelets::add_wavelet(Wavelets W, DTYPE alpha) {
return 0;
}

/// Return the memory pointer (unsigned int64) of the device image
__intptr_t Wavelets::image_int_ptr(void) {
return (__intptr_t) d_image;
}










/// Return the memory pointer (unsigned int64) of the device coefficient.
__intptr_t Wavelets::coeff_int_ptr(int num) {
return (__intptr_t) d_coeffs[num];
}


2 changes: 2 additions & 0 deletions src/wt.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ class Wavelets {
int set_filters_inverse(DTYPE* filter1, DTYPE* filter2, DTYPE* filter3 = NULL, DTYPE* filter4 = NULL);

int add_wavelet(Wavelets W, DTYPE alpha=1.0f);
__intptr_t image_int_ptr(void);
__intptr_t coeff_int_ptr(int num);
};


Expand Down

0 comments on commit 3d7da10

Please sign in to comment.