File: opencl

package info (click to toggle)
silx 2.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 31,728 kB
  • sloc: python: 119,843; ansic: 5,062; lisp: 4,454; cpp: 883; sh: 286; makefile: 90; xml: 46
file content (23 lines) | stat: -rwxr-xr-x 833 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

# Check that OpenCL isn't totally broken (note that it isn't totally working either)
# Uses device 0 platform 0, i.e. to use a real GPU manually install its opencl-icd before running this
# Mark the test has flaky, the important part is the CPU computation.

# display the OpenCL platform info

clinfo

# install the ascent dataset

mkdir -p "$AUTOPKGTEST_TMP"/.cache/scipy-data/
cp debian/dataset-ascent/ascent.dat "$AUTOPKGTEST_TMP"/.cache/scipy-data/

# until we solved https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1060318
# export POCL_WORK_GROUP_METHOD=cbs

for py in $(py3versions -s 2>/dev/null)
do cd "$AUTOPKGTEST_TMP"
   echo "Testing with $py:"
   HOME="$AUTOPKGTEST_TMP" WITH_QT_TEST=False SILX_TEST_LOW_MEM=False xvfb-run -a --server-args="-screen 0 1024x768x24" $py -m pytest --pyargs silx 2>&1
done