mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-20 11:32:12 +00:00
Fix -V (vector width) handling
This commit is contained in:
parent
9a1f35d604
commit
57407b1640
@ -1582,7 +1582,7 @@ MARKOV="enabled"
|
|||||||
ATTACK=0
|
ATTACK=0
|
||||||
MODE=0
|
MODE=0
|
||||||
TYPE="null"
|
TYPE="null"
|
||||||
VECTOR=0
|
VECTOR="default"
|
||||||
HT=0
|
HT=0
|
||||||
PACKAGE=0
|
PACKAGE=0
|
||||||
|
|
||||||
@ -1591,19 +1591,14 @@ while getopts "V:T:t:m:a:b:hcpd:x:o:" opt; do
|
|||||||
case ${opt} in
|
case ${opt} in
|
||||||
"V")
|
"V")
|
||||||
if [ ${OPTARG} == "1" ]; then
|
if [ ${OPTARG} == "1" ]; then
|
||||||
OPTS="${OPTS} --opencl-vector-width 1"
|
|
||||||
VECTOR=1
|
VECTOR=1
|
||||||
elif [ ${OPTARG} == "2" ]; then
|
elif [ ${OPTARG} == "2" ]; then
|
||||||
OPTS="${OPTS} --opencl-vector-width 2"
|
|
||||||
VECTOR=2
|
VECTOR=2
|
||||||
elif [ ${OPTARG} == "4" ]; then
|
elif [ ${OPTARG} == "4" ]; then
|
||||||
OPTS="${OPTS} --opencl-vector-width 4"
|
|
||||||
VECTOR=4
|
VECTOR=4
|
||||||
elif [ ${OPTARG} == "8" ]; then
|
elif [ ${OPTARG} == "8" ]; then
|
||||||
OPTS="${OPTS} --opencl-vector-width 8"
|
|
||||||
VECTOR=8
|
VECTOR=8
|
||||||
elif [ ${OPTARG} == "all" ]; then
|
elif [ ${OPTARG} == "all" ]; then
|
||||||
OPTS="${OPTS} --opencl-vector-width 1,2,4,8"
|
|
||||||
VECTOR="all"
|
VECTOR="all"
|
||||||
else
|
else
|
||||||
usage
|
usage
|
||||||
@ -1709,11 +1704,6 @@ while getopts "V:T:t:m:a:b:hcpd:x:o:" opt; do
|
|||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "${VECTOR}" == "0" ]; then
|
|
||||||
VECTOR="default"
|
|
||||||
OPTS="${OPTS} --opencl-vector-width 1,4"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${TYPE}" == "null" ]; then
|
if [ "${TYPE}" == "null" ]; then
|
||||||
TYPE="Gpu"
|
TYPE="Gpu"
|
||||||
OPTS="${OPTS} --opencl-device-types 2"
|
OPTS="${OPTS} --opencl-device-types 2"
|
||||||
@ -1869,6 +1859,8 @@ if [ "${PACKAGE}" -eq 0 -o -z "${PACKAGE_FOLDER}" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
OPTS="${OPTS_OLD}"
|
||||||
|
VECTOR="${VECTOR_OLD}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user