mirror of
https://github.com/hashcat/hashcat
synced 2024-12-09 02:13:10 +01:00
Add some useful environment variable for use with amd-gpu-pro driver
This commit is contained in:
parent
1ed89eb261
commit
6d0eb174f5
18
src/shared.c
18
src/shared.c
@ -159,12 +159,30 @@ void setup_environment_variables ()
|
||||
putenv ((char *) "DISPLAY=:0");
|
||||
}
|
||||
|
||||
if (getenv ("GPU_FORCE_64BIT_PTR") == NULL)
|
||||
putenv ((char *) "GPU_FORCE_64BIT_PTR=1");
|
||||
|
||||
if (getenv ("GPU_MAX_ALLOC_PERCENT") == NULL)
|
||||
putenv ((char *) "GPU_MAX_ALLOC_PERCENT=100");
|
||||
|
||||
if (getenv ("GPU_SINGLE_ALLOC_PERCENT") == NULL)
|
||||
putenv ((char *) "GPU_SINGLE_ALLOC_PERCENT=100");
|
||||
|
||||
if (getenv ("GPU_MAX_HEAP_SIZE") == NULL)
|
||||
putenv ((char *) "GPU_MAX_HEAP_SIZE=100");
|
||||
|
||||
if (getenv ("CPU_FORCE_64BIT_PTR") == NULL)
|
||||
putenv ((char *) "CPU_FORCE_64BIT_PTR=1");
|
||||
|
||||
if (getenv ("CPU_MAX_ALLOC_PERCENT") == NULL)
|
||||
putenv ((char *) "CPU_MAX_ALLOC_PERCENT=100");
|
||||
|
||||
if (getenv ("CPU_SINGLE_ALLOC_PERCENT") == NULL)
|
||||
putenv ((char *) "CPU_SINGLE_ALLOC_PERCENT=100");
|
||||
|
||||
if (getenv ("CPU_MAX_HEAP_SIZE") == NULL)
|
||||
putenv ((char *) "CPU_MAX_HEAP_SIZE=100");
|
||||
|
||||
if (getenv ("GPU_USE_SYNC_OBJECTS") == NULL)
|
||||
putenv ((char *) "GPU_USE_SYNC_OBJECTS=1");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user