Skip to content

Commit 16421f8

Browse files
Hide compilation warnings and remove useless comments.
Mentions: #1
1 parent fd9c7bb commit 16421f8

File tree

5 files changed

+0
-19
lines changed

5 files changed

+0
-19
lines changed

02_hello.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import numpy as np
32
import pyopencl as cl
43

@@ -12,8 +11,6 @@ def main():
1211
}
1312
'''
1413

15-
os.environ['PYOPENCL_COMPILER_OUTPUT'] = '1'
16-
1714
plf = [(cl.context_properties.PLATFORM, cl.get_platforms()[0])]
1815
ctx = cl.Context(dev_type=cl.device_type.GPU, properties=plf)
1916
prg = cl.Program(ctx, CL_CODE).build()

03_double.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# A precision test for 64-bits floating point value.
2-
#
3-
# It's the output on Intel i7 3667U + HD Graphics 4000.
4-
# The GPU doesn't support 64-bits floating point value.
5-
#
6-
# Increase each items in array: [1. 2. 3.]
7-
# Results of CPU: [2. 3. 4.]
8-
# Results of GPU: [2.40000038e+001 5.26354425e-315 0.00000000e+000]
9-
#
10-
# See: https://stackoverflow.com/questions/11176990/opencl-floating-point-precision
11-
121
import numpy as np
132
import pyopencl as cl
143

04_group.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import numpy as np
32
import pyopencl as cl
43

@@ -16,8 +15,6 @@ def group_test(dev_type, gw_size, lw_size):
1615
lw_name = 'undefined' if lw_size == 0 else lw_size
1716
print('===== (device: {}, global work size: {}, local work size: {}) ====='.format(type_name, gw_size, lw_name))
1817

19-
os.environ['PYOPENCL_COMPILER_OUTPUT'] = '1'
20-
2118
plf = [(cl.context_properties.PLATFORM, cl.get_platforms()[0])]
2219
ctx = cl.Context(dev_type=dev_type, properties=plf)
2320
prg = cl.Program(ctx, CL_CODE).build()

05_barrier.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import numpy as np
32
import pyopencl as cl
43

08_image.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import numpy as np
32
import pyopencl as cl
43
from PIL import Image

0 commit comments

Comments
 (0)