mirror of
https://github.com/hashcat/hashcat
synced 2024-11-24 14:27:14 +01:00
add env variable IS_OPTIMIZED to test.sh
we now export the IS_OPTIMIZED option within test.sh to let test.pl know if we want to use pure or optimized kernels. Thanks
This commit is contained in:
parent
0507d709f0
commit
decd8322c8
@ -2542,6 +2542,7 @@ TYPE="null"
|
||||
VECTOR="default"
|
||||
HT=0
|
||||
PACKAGE=0
|
||||
OPTIMIZED=1
|
||||
|
||||
while getopts "V:t:m:a:b:hcpd:x:o:d:D:F:POI:s:" opt; do
|
||||
|
||||
@ -2668,6 +2669,7 @@ while getopts "V:t:m:a:b:hcpd:x:o:d:D:F:POI:s:" opt; do
|
||||
|
||||
"P")
|
||||
OPTS="$(echo "${OPTS}" | sed 's/ -O$//' | sed 's/^-O //' | sed 's/ -O //')"
|
||||
OPTIMIZED=0
|
||||
;;
|
||||
|
||||
\?)
|
||||
@ -2681,6 +2683,8 @@ while getopts "V:t:m:a:b:hcpd:x:o:d:D:F:POI:s:" opt; do
|
||||
|
||||
done
|
||||
|
||||
export IS_OPTIMIZED=${OPTIMIZED}
|
||||
|
||||
if [ "${TYPE}" == "null" ]; then
|
||||
OPTS="${OPTS} -D 2"
|
||||
TYPE="Gpu"
|
||||
|
Loading…
Reference in New Issue
Block a user