File: opencl

package info (click to toggle)
pyvkfft 2024.1.4%2Bds1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 36,820 kB
  • sloc: python: 5,527; cpp: 210; makefile: 25; sh: 9
file content (20 lines) | stat: -rwxr-xr-x 586 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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.

# for pocl cache
export HOME=/tmp
export POCL_DEBUG=error
export PYOPENCL_COMPILER_OUTPUT=1

# use clinfo in order to display platform informations

clinfo

for py in $(py3versions -r 2>/dev/null)
do cd "$AUTOPKGTEST_TMP"
   echo "Testing with $py:"
   $py /usr/bin/pyvkfft-test --nproc 4 --backend pyopencl
done