1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 00:28:11 +00:00

Remove inline static keyword in inc_vendor.h for HIP platform since it's the default setting with HIP 4.4

This commit is contained in:
Jens Steube 2021-11-02 08:12:13 +01:00
parent db3bc8eca2
commit 89cd5bd78b
2 changed files with 9 additions and 9 deletions

View File

@ -125,7 +125,7 @@
#if defined IS_AMD && defined IS_GPU
#define DECLSPEC inline static
#elif defined IS_HIP
#define DECLSPEC inline static __device__
#define DECLSPEC __device__
#else
#define DECLSPEC
#endif
@ -133,14 +133,6 @@
#define INLINE0 __attribute__ ((noinline))
#define INLINE1 __attribute__ ((inline))
#if defined IS_AMD && defined IS_GPU
#define INLINE INLINE0
#elif defined IS_HIP
#define INLINE INLINE0
#else
#define INLINE
#endif
/**
* AMD specific
*/

View File

@ -17,6 +17,14 @@
#define COMPARE_S "inc_comp_single.cl"
#define COMPARE_M "inc_comp_multi.cl"
#if defined IS_AMD && defined IS_GPU
#define INLINE
#elif defined IS_HIP
#define INLINE INLINE0
#else
#define INLINE
#endif
typedef struct pdf
{
int V;