Skip to content

Commit aa7948a

Browse files
committed
remove comment
1 parent 445e9a5 commit aa7948a

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

q7_theano_gpu_test.py

+17-3
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,28 @@
66
floatX = float32
77
device = gpu0
88
9-
NOT WORKING under LiClipse
109
1110
@author: richard lyman
1211
1312
'''
13+
import os
14+
print (os.get_exec_path())
15+
p=os.getenv('PATH')
16+
print("getenv('PATH')={}".format(p))
17+
p=os.getenv('LD_LIBRARY_PATH')
18+
print("getenv('LD_LIBRARY_PATH')={}".format(p))
19+
p=os.getenv('CUDA_HOME')
20+
print("getenv('CUDA_HOME')={}".format(p))
21+
p=os.getenv('PYTHONPATH')
22+
print("getenv('PYTHONPATH')={}".format(p))
23+
24+
#os.environ['PATH'] = p
25+
# print(os.getenv('PATH'))
1426
from theano import function, config, shared, sandbox
1527
import theano.tensor as T
16-
import theano
1728
import numpy
1829
import time
30+
1931
vlen = 10 * 30 * 768 # 10 x #cores x # threads per core
2032
iters = 1000
2133

@@ -32,4 +44,6 @@
3244
if numpy.any([isinstance(x.op, T.Elemwise) for x in f.maker.fgraph.toposort()]):
3345
print('Used the cpu')
3446
else:
35-
print('Used the gpu')
47+
print('Used the gpu')
48+
49+
print ('\n########################### No Errors ####################################')

0 commit comments

Comments
 (0)