Skip to content

Commit

Permalink
Fixed hipfftLibraryPropertyType_t with HIPFFT_ prefix (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
feizheng10 authored Oct 10, 2019
1 parent 14be809 commit 185001f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion clients/samples/hipfft/hipfft_setworkarea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main()
std::cout << "hipfft 1D single-precision real-to-complex transform showing work memory usage\n";

int major_version;
hipfftGetProperty(MAJOR_VERSION, &major_version);
hipfftGetProperty(HIPFFT_MAJOR_VERSION, &major_version);
std::cout << "hipFFT major_version " << major_version << std::endl;

const size_t N = 9;
Expand Down
6 changes: 3 additions & 3 deletions library/include/hipfft.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ typedef enum hipfftType_t

typedef enum hipfftLibraryPropertyType_t
{
MAJOR_VERSION,
MINOR_VERSION,
PATCH_LEVEL
HIPFFT_MAJOR_VERSION,
HIPFFT_MINOR_VERSION,
HIPFFT_PATCH_LEVEL
} hipfftLibraryPropertyType;

#define HIPFFT_FORWARD -1
Expand Down
6 changes: 3 additions & 3 deletions library/src/hipfft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1040,11 +1040,11 @@ hipfftResult hipfftGetProperty(hipfftLibraryPropertyType type, int* value)
int minor = (full - major * 10000) / 100;
int patch = (full - major * 10000 - minor * 100);

if(type == MAJOR_VERSION)
if(type == HIPFFT_MAJOR_VERSION)
*value = major;
else if(type == MINOR_VERSION)
else if(type == HIPFFT_MINOR_VERSION)
*value = minor;
else if(type == PATCH_LEVEL)
else if(type == HIPFFT_PATCH_LEVEL)
*value = patch;
else
return HIPFFT_INVALID_TYPE;
Expand Down

0 comments on commit 185001f

Please sign in to comment.