1
mirror of https://github.com/hashcat/hashcat synced 2024-12-01 20:18:12 +01:00

Add some useful environment variable for use with amd-gpu-pro driver

This commit is contained in:
jsteube 2016-11-06 12:26:42 +01:00
parent 1ed89eb261
commit 6d0eb174f5

View File

@ -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");