From 49517f63cb169ab1784d43303d9a2dd2d4aa79c2 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Fri, 26 Aug 2022 14:53:15 +0200 Subject: [PATCH] HIP Backend: removed unused functions from hiprtc to workaroung missing function symbols on windows dll --- docs/changes.txt | 1 + include/ext_hiprtc.h | 4 ---- src/ext_hiprtc.c | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 88c69a7c7..5a0b52f4d 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -93,6 +93,7 @@ - Hardware Monitor: Add support for GPU device utilization readings using iokit on Apple Silicon (OpenCL and Metal) - Hash Info: show more information (Updated Hash-Format. Added Autodetect, Self-Test, Potfile and Plaintext encoding) - HIP Backend: moved functions to ext_hip.c/ext_hiprtc.c and includes to ext_hip.h/ext_hiprtc.h +- HIP Backend: removed unused functions from hiprtc to workaroung missing function symbols on windows dll - Kernels: Refactored standard kernel declaration to use a structure holding u32/u64 attributes to reduce the number of attributes - Kernels: Refactored standard kernel includes, KERN_ATTR macros and rc4 cipher functions, in order to support Apple Metal runtime - Kernels: Set the default Address Space Qualifier for any pointer, in order to support Apple Metal runtime diff --git a/include/ext_hiprtc.h b/include/ext_hiprtc.h index 280ba13dd..b43a0ebd0 100644 --- a/include/ext_hiprtc.h +++ b/include/ext_hiprtc.h @@ -35,13 +35,11 @@ typedef struct _hiprtcProgram* hiprtcProgram; #define HIPRTC_API_CALL HIPRTCAPI -typedef hiprtcResult (HIPRTC_API_CALL *HIPRTC_HIPRTCADDNAMEEXPRESSION) (hiprtcProgram, const char * const); typedef hiprtcResult (HIPRTC_API_CALL *HIPRTC_HIPRTCCOMPILEPROGRAM) (hiprtcProgram, int, const char * const *); typedef hiprtcResult (HIPRTC_API_CALL *HIPRTC_HIPRTCCREATEPROGRAM) (hiprtcProgram *, const char *, const char *, int, const char * const *, const char * const *); typedef hiprtcResult (HIPRTC_API_CALL *HIPRTC_HIPRTCDESTROYPROGRAM) (hiprtcProgram *); typedef hiprtcResult (HIPRTC_API_CALL *HIPRTC_HIPRTCGETCODE) (hiprtcProgram, char *); typedef hiprtcResult (HIPRTC_API_CALL *HIPRTC_HIPRTCGETCODESIZE) (hiprtcProgram, size_t *); -typedef hiprtcResult (HIPRTC_API_CALL *HIPRTC_HIPRTCGETLOWEREDNAME) (hiprtcProgram, const char * const, const char **); typedef hiprtcResult (HIPRTC_API_CALL *HIPRTC_HIPRTCGETPROGRAMLOG) (hiprtcProgram, char *); typedef hiprtcResult (HIPRTC_API_CALL *HIPRTC_HIPRTCGETPROGRAMLOGSIZE) (hiprtcProgram, size_t *); typedef const char * (HIPRTC_API_CALL *HIPRTC_HIPRTCGETERRORSTRING) (hiprtcResult); @@ -50,13 +48,11 @@ typedef struct hc_hiprtc_lib { hc_dynlib_t lib; - HIPRTC_HIPRTCADDNAMEEXPRESSION hiprtcAddNameExpression; HIPRTC_HIPRTCCOMPILEPROGRAM hiprtcCompileProgram; HIPRTC_HIPRTCCREATEPROGRAM hiprtcCreateProgram; HIPRTC_HIPRTCDESTROYPROGRAM hiprtcDestroyProgram; HIPRTC_HIPRTCGETCODE hiprtcGetCode; HIPRTC_HIPRTCGETCODESIZE hiprtcGetCodeSize; - HIPRTC_HIPRTCGETLOWEREDNAME hiprtcGetLoweredName; HIPRTC_HIPRTCGETPROGRAMLOG hiprtcGetProgramLog; HIPRTC_HIPRTCGETPROGRAMLOGSIZE hiprtcGetProgramLogSize; HIPRTC_HIPRTCGETERRORSTRING hiprtcGetErrorString; diff --git a/src/ext_hiprtc.c b/src/ext_hiprtc.c index 2d2f86566..5160befa1 100644 --- a/src/ext_hiprtc.c +++ b/src/ext_hiprtc.c @@ -52,11 +52,9 @@ int hiprtc_init (void *hashcat_ctx) if (hiprtc->lib == NULL) return -1; - HC_LOAD_FUNC (hiprtc, hiprtcAddNameExpression, HIPRTC_HIPRTCADDNAMEEXPRESSION, HIPRTC, 1); HC_LOAD_FUNC (hiprtc, hiprtcCompileProgram, HIPRTC_HIPRTCCOMPILEPROGRAM, HIPRTC, 1); HC_LOAD_FUNC (hiprtc, hiprtcCreateProgram, HIPRTC_HIPRTCCREATEPROGRAM, HIPRTC, 1); HC_LOAD_FUNC (hiprtc, hiprtcDestroyProgram, HIPRTC_HIPRTCDESTROYPROGRAM, HIPRTC, 1); - HC_LOAD_FUNC (hiprtc, hiprtcGetLoweredName, HIPRTC_HIPRTCGETLOWEREDNAME, HIPRTC, 1); HC_LOAD_FUNC (hiprtc, hiprtcGetCode, HIPRTC_HIPRTCGETCODE, HIPRTC, 1); HC_LOAD_FUNC (hiprtc, hiprtcGetCodeSize, HIPRTC_HIPRTCGETCODESIZE, HIPRTC, 1); HC_LOAD_FUNC (hiprtc, hiprtcGetProgramLog, HIPRTC_HIPRTCGETPROGRAMLOG, HIPRTC, 1);