mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-15 12:29:35 +00:00
Update default environment variables
This commit is contained in:
parent
a85be1d0f0
commit
33804110d1
26
src/shared.c
26
src/shared.c
@ -335,32 +335,14 @@ void setup_environment_variables ()
|
||||
}
|
||||
|
||||
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");
|
||||
putenv ((char *) "GPU_FORCE_64BIT_PTR=0");
|
||||
|
||||
if (getenv ("GPU_USE_SYNC_OBJECTS") == NULL)
|
||||
putenv ((char *) "GPU_USE_SYNC_OBJECTS=1");
|
||||
|
||||
if (getenv ("OCL_CODE_CACHE_ENABLE") == NULL)
|
||||
putenv ((char *) "OCL_CODE_CACHE_ENABLE=0");
|
||||
|
||||
if (getenv ("CUDA_CACHE_DISABLE") == NULL)
|
||||
putenv ((char *) "CUDA_CACHE_DISABLE=1");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user