Skip to content

Commit

Permalink
feat: export version in shared library (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 authored Jul 16, 2024
1 parent 7d58582 commit 50502a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/RL-Biggs-Andrews.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "linearDecon.h"
#include "version.h"


#include <vector>
Expand Down Expand Up @@ -464,6 +465,12 @@ CPUBuffer rotMatrix;
cufftHandle rfftplanGPU, rfftplanInvGPU;
GPUBuffer d_interpOTF(0, false); // since this is a global for th RL_interface dll, just leave device empty. It will probably default to GPU 0.


const char * get_version()
{
return PROJECT_VERSION;
}

unsigned get_output_nx()
{

Expand Down
3 changes: 3 additions & 0 deletions src/linearDecon.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ void makeNewDir(std::string subdirname);
CUDADECON_API unsigned get_output_nx();
CUDADECON_API unsigned get_output_ny();
CUDADECON_API unsigned get_output_nz();

// return version number
CUDADECON_API const char* get_version();
}

#endif

0 comments on commit 50502a6

Please sign in to comment.