Make Octopus OpenCL support work on Clover and RadeonSI
Submitted by Vedran Miletić
Assigned to mes..@..op.org
Description
Octopus is a quantum chemistry code with experimental OpenCL support using clBLAS and clFFT [1]. It can be compiled with:
$ ./configure --with-libxc-include=/usr/lib64/gfortran/modules --enable-opencl --with-clblas-prefix=/usr/local --with-clfft-prefix=/usr/local
Running test file named inp from http://octopus-code.org/wiki/Tutorial:Hydrogen_atom results in:
AN INTERNAL KERNEL BUILD ERROR OCCURRED! device name = AMD FIJI (DRM 3.8.0 / 4.9.7-201.fc25.x86_64, LLVM 5.0.0) error = -43 memory pattern = Register accumulation based swap, computing kernel generator Subproblem dimensions: dims[0].itemY = 32, dims[0].itemX = 32, dims[0].y = 32, dims[0].x = 32, dims[0].bwidth = 64; ; dims[1].itemY = 4, dims[1].itemX = 4, dims[1].y = 4, dims[1].x = 4, dims[1].bwidth = 4; ; Parallelism granularity: pgran->wgDim = 1, pgran->wgSize[0] = 64, pgran->wgSize[1] = 1, pgran->wfSize = 64 Kernel extra flags: 268462752 Source:
(...)
Build log:
========================================================
Octopus debug trace not available. You can enable it with 'Debug = trace'. Segmentation fault (core dumped)
[1] https://github.com/clMathLibraries
Version: git