Closed avramidis closed 6 years ago
Created the branch https://github.com/avramidis/sodecl/tree/bug/issue-travisci-linux-opencl to try to fix this bug.
The bug was fixed by installing the OpenCL runtime OpenCL™ Runtime 16.1.2 for Intel® Core™ and Intel® Xeon® Processors for Red Hat and Ubuntu Linux* (64-bit) from the Intel website.
To install the runtime first lsb-core and ocl-icd-opencl-dev are installed. They are requirements for the Intel OpenCL runtime. A silent install is done using the travisci/intelOpenCLSilent.cfg config file.
After the installation of the Intel OpenCL runtime the following command is run
sudo ldconfig
This concludes the installation on linux for TravisCI.
The issue-travisci-linux-opencl branch with the bug fix was merge to develop (see last commit https://github.com/avramidis/sodecl/commit/edc1358974a521baec96be3fa9bbd4e6b6246ebf).
The TravisCI config now tests SODECL on linux and osx.
The bug is considered fixed.
Describe the bug TravisCI config for Ubuntu fails with segmentation fault. This is most likely caused by not correctly installing the OpenCL drivers. The workaround for this problem now is to test only for osx which has the OpenCL drivers installed by default. The ideal would be to be able to install the OpenCL drivers for Ubuntu and Windows. This will allow to run test on osx, Ubuntu and Windows.
To Reproduce To reproduce the behavior use the following configuration for TravisCI in the .travis.yml file.
dist: trusty
sudo: required
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y ocl-icd-opencl-dev
compiler:
- gcc
script:
- mkdir build
- cd build
- cmake .. && make && ctest --verbose
**Expected behavior**
The test will pass.