I have ubuntu 15.10 with libclblas2, libclblas2-dev, libatlas3-base, libatlas-dev, acml-6.3
HW: CPU Phenom II 4x 965, 2x Radeon HD 6990
I was able to build clmagma-1.3.0 with root privileges using the following make.inc
Code: Select all
#//////////////////////////////////////////////////////////////////////////////
# -- MAGMA (version 1.1.0) --
# Univ. of Tennessee, Knoxville
# Univ. of California, Berkeley
# Univ. of Colorado, Denver
# @date January 2014
#//////////////////////////////////////////////////////////////////////////////
# setenv AMD_CLBLAS_STORAGE_PATH /home/tomov/cl_magma
#
# GPU_TARGET specifies for which GPU you want to compile MAGMA:
# "Tesla" (NVIDIA compute capability 1.x cards)
# "Fermi" (NVIDIA compute capability 2.x cards)
# "AMD" (clMAGMA with AMD cards)
# See http://developer.nvidia.com/cuda-gpus
GPU_TARGET = AMD
CC = g++
FORT = gfortran
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
OPTS = -fPIC -O3 -DADD_ -Wall
FOPTS = -fPIC -O3 -DADD_ -Wall -x f95-cpp-input
F77OPTS = -fPIC -O3 -DADD_ -Wall
LDOPTS = -fPIC
# define library directories preferably in your environment, or here.
#ACMLDIR ?= /opt/acml-4.4.0
#clBLAS ?= /opt/clAmdBlas-1.11.314
#AMDAPP ?= /opt/AMDAPP
-include make.check-acml
#-include make.check-clblas
#LIB = -lacml -lacml_mv
#LIB = -lacml_mp -lacml_mv -lcblas
LIB = -lacml_mp -lcblas
LIB += -lclBLAS -lOpenCL
#LIB += -lclAmdBlas -lOpenCL
#LIBDIR = -L$(ACMLDIR)/gfortran64/lib \
# -L$(clBLAS)/lib64 \
LIBDIR = -L$(ACMLDIR)/gfortran64_mp/lib \
-L$(CBLASDIR)/lib
INC = -I$(clBLAS)/include \
-I$(AMDAPP)/include
I set the $LD_LIBRARY_PATH to the lib directory with clmagma_kernels.co, but it doesn't help.
Then I understood, that app somehow reset the LD_LIBRARY_PATH to '.' and look for it in current directory
I copied clmagma_kenels.co to the testing directory.
the error message disappeard.
However, tests don't run.
It just shows the message below and does nothing for a while.
How can I check, that it does something?
radeontop shows no any activity
Code: Select all
victor@fossil-dt5:~/sandbox/clmagma-1.3.0/testing$ sudo ./run_tests.py
opts {'med': True, 'qr': True, 'sygv': True, 'memcheck': None, 'blas': True, 'chol': True, 'geev': True, 'syev': True, 'large': True, 'start': None, 'lu': True, 'precisions': 'sdcz', 'tol': None, 'small': True, 'aux': True, 'svd': True}
args []
****************************************************************************************************
./testing_sgemm -l -NN -c --range 1:20:1 -N 30 -N 31 -N 32 -N 33 -N 34 -N 62 -N 63 -N 64 -N 65 -N 66 -N 94 -N 95 -N 96 -N 97 -N 98 -N 126 -N 127 -N 128 -N 129 -N 130 -N 254 -N 255 -N 256 -N 257 -N 258 -N 510 -N 511 -N 512 -N 513 -N 514 --range 100:900:100 --range 1000:4000:1000 -N 2,1 -N 3,1 -N 4,2 -N 20,19 -N 20,10 -N 20,2 -N 20,1 -N 200,199 -N 200,100 -N 200,20 -N 200,10 -N 200,1 -N 600,599 -N 600,300 -N 600,60 -N 600,30 -N 600,10 -N 600,1 -N 2000,1999 -N 2000,1000 -N 2000,200 -N 2000,100 -N 2000,10 -N 2000,1 -N 1,2 -N 1,3 -N 2,4 -N 19,20 -N 10,20 -N 2,20 -N 1,20 -N 199,200 -N 100,200 -N 20,200 -N 10,200 -N 1,200 -N 599,600 -N 300,600 -N 60,600 -N 30,600 -N 10,600 -N 1,600 -N 1999,2000 -N 1000,2000 -N 200,2000 -N 100,2000 -N 10,2000 -N 1,2000 -N 1,2,3 -N 2,1,3 -N 1,3,2 -N 2,3,1 -N 3,1,2 -N 3,2,1 -N 10,20,30 -N 20,10,30 -N 10,30,20 -N 20,30,10 -N 30,10,20 -N 30,20,10 -N 100,200,300 -N 200,100,300 -N 100,300,200 -N 200,300,100 -N 300,100,200 -N 300,200,100 -N 100,300,600 -N 300,100,600 -N 100,600,300 -N 300,600,100 -N 600,100,300 -N 600,300,100 -N 1000,2000,3000 -N 2000,1000,3000 -N 1000,3000,2000 -N 2000,3000,1000 -N 3000,1000,2000 -N 3000,2000,1000
****************************************************************************************************
testing_benchmark with -T [0123] even without root privileges
radeontop shows some activity and testing_benchmark runs without any errors.
what I can try next to be sure, that clmagma works?
potentially I need qr and lu decomposition solvers.
Best regards,
Victor