Skip to content

Commit 8921d17

Browse files
committed
Fixed parse bug of HAS_OPENCL env.
1 parent d1a153f commit 8921d17

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/embedding/FaceProcessing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import sklearn.preprocessing
2424

2525
global mx
26+
mx = None
2627
global globGraph
2728
globGraph = None
2829
global mod
@@ -128,6 +129,8 @@ def init_embedding_processor():
128129
embedding = featureCalculation2(os.path.join(BASEDIR,"image","Mike_Alden_0001_tmp.png"))
129130
print("warmed up")
130131
return mod3
132+
else:
133+
print('has opencl supporting')
131134

132135
if os.path.isfile(DATA_RUNTIME_FOLDER+'/net2'):
133136
global __t

start_service.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ source ./env/common.sh
33

44
if [ -f /system/vendor/lib64/libOpenCL.so ]
55
then
6-
export HAS_OPENCL=1
6+
export HAS_OPENCL=true
77
echo 'has opencl supporting'
88
else
9-
export HAS_OPENCL=0
9+
export HAS_OPENCL=false
1010
echo 'no opencl supporting'
1111
fi
1212

0 commit comments

Comments
 (0)