Skip to content

Commit 185001f

Browse files
authored
Fixed hipfftLibraryPropertyType_t with HIPFFT_ prefix (#34)
1 parent 14be809 commit 185001f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

clients/samples/hipfft/hipfft_setworkarea.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main()
2929
std::cout << "hipfft 1D single-precision real-to-complex transform showing work memory usage\n";
3030

3131
int major_version;
32-
hipfftGetProperty(MAJOR_VERSION, &major_version);
32+
hipfftGetProperty(HIPFFT_MAJOR_VERSION, &major_version);
3333
std::cout << "hipFFT major_version " << major_version << std::endl;
3434

3535
const size_t N = 9;

library/include/hipfft.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ typedef enum hipfftType_t
6666

6767
typedef enum hipfftLibraryPropertyType_t
6868
{
69-
MAJOR_VERSION,
70-
MINOR_VERSION,
71-
PATCH_LEVEL
69+
HIPFFT_MAJOR_VERSION,
70+
HIPFFT_MINOR_VERSION,
71+
HIPFFT_PATCH_LEVEL
7272
} hipfftLibraryPropertyType;
7373

7474
#define HIPFFT_FORWARD -1

library/src/hipfft.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,11 +1040,11 @@ hipfftResult hipfftGetProperty(hipfftLibraryPropertyType type, int* value)
10401040
int minor = (full - major * 10000) / 100;
10411041
int patch = (full - major * 10000 - minor * 100);
10421042

1043-
if(type == MAJOR_VERSION)
1043+
if(type == HIPFFT_MAJOR_VERSION)
10441044
*value = major;
1045-
else if(type == MINOR_VERSION)
1045+
else if(type == HIPFFT_MINOR_VERSION)
10461046
*value = minor;
1047-
else if(type == PATCH_LEVEL)
1047+
else if(type == HIPFFT_PATCH_LEVEL)
10481048
*value = patch;
10491049
else
10501050
return HIPFFT_INVALID_TYPE;

0 commit comments

Comments
 (0)