Skip to content

Commit

Permalink
changing clfftInitSetupData to external linkage to aid with low opt c…
Browse files Browse the repository at this point in the history
…ompilations #194
  • Loading branch information
bragadeesh committed Jun 28, 2017
1 parent c24db97 commit 304b9f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/include/clFFT.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,8 @@ extern "C" {
* @param[out] setupData Data structure is cleared and initialized with version information and default values
* @return Enum describes the error condition; superset of OpenCL error codes
*/
__inline clfftStatus clfftInitSetupData( clfftSetupData* setupData )
{
setupData->major = clfftVersionMajor;
setupData->minor = clfftVersionMinor;
setupData->patch = clfftVersionPatch;
setupData->debugFlags = 0;

return CLFFT_SUCCESS;
}
CLFFTAPI clfftStatus clfftInitSetupData( clfftSetupData* setupData );


/*! @brief Initialize the internal FFT resources.
* @details The internal resources include FFT implementation caches kernels, programs, and buffers.
Expand Down
10 changes: 10 additions & 0 deletions src/library/lifetime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
#include "../include/sharedLibrary.h"
#include "../statTimer/statisticalTimer.extern.h"

clfftStatus clfftInitSetupData( clfftSetupData* setupData )
{
setupData->major = clfftVersionMajor;
setupData->minor = clfftVersionMinor;
setupData->patch = clfftVersionPatch;
setupData->debugFlags = 0;

return CLFFT_SUCCESS;
}

// Allow AMD's implementation of FFT's to allocate internal resources
clfftStatus clfftSetup( const clfftSetupData* sData )
{
Expand Down

0 comments on commit 304b9f4

Please sign in to comment.