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
pull/1947/head
philsmd 5 years ago committed by GitHub
parent 0507d709f0
commit decd8322c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save