Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation issue about v3.0.0 #24

Open
ZhouChao2018 opened this issue Nov 19, 2019 · 5 comments
Open

installation issue about v3.0.0 #24

ZhouChao2018 opened this issue Nov 19, 2019 · 5 comments

Comments

@ZhouChao2018
Copy link

Hello acharara,
The following error occurred when I built the KBLAS.It seems to be a cast error.
batch_triangular/Xtrmm_batch.cu(83): error: argument of type "float **" is incompatible with parameter of type "magma_int_t"

batch_triangular/Xtrmm_batch.cu(84): error: argument of type "int" is incompatible with parameter of type "float **"
Do you have any ideas?

@ZhouChao2018 ZhouChao2018 changed the title installation issue installation issue about v3.0.0 Nov 20, 2019
@acharara
Copy link
Collaborator

Hello ZhouChao,
Apparently, the signature if a routine in MAGMA API has been modified with latest MAGMA releases. You can avoid this error for now by switching MAGMA off in the make.inc file of KBLAS (comment out USE_MAGMA around line 30).
Otherwise, I will fix this and commit it soon.

Thanks for your report
Ali

@GBZH
Copy link

GBZH commented Aug 1, 2022

Hello,

On Ubuntu 22.04 running CUDA 11.7, I am trying to install H2Opus which requires installation of KBLAS-GPU. I have successfully installed MAGMA (from bitbucket: https://bitbucket.org/icl/magma/get/3816143865f0.zip, version 2.7.0?).
However, when trying to compile KBLAS-GPU with the attached make.inc, I get lots of errors of the type :
batch_triangular/Xgemm_batch_core.cuh(437): error: argument of type "magma_int_t *" is incompatible with parameter of type "magma_int_t"
detected during instantiation of "int Xgemm_batch_nonuniform_core(kblasHandle_t, char, char, int *, int *, int *, T, const T **, int, int, int *, const T **, int, int, int *, T, T **, int, int, int *, int, int, int, int) [with T=float]"
......

batch_triangular/Xtrsm_batch_drivers.cuh(326): error: argument of type "int *" is incompatible with parameter of type "magma_int_t"
detected during instantiation of "int Xtrsm_batch_nonuniform_core(kblasHandle_t, char, char, char, char, int *, int *, T, T **, int *, T **, int *, int, int, int) [with T=double]"
batch_triangular/Xtrsm_batch.cu(130): here
make.txt

Could you please indicate which version of magma should be used ? Or better, could you upload a KLAS-GPU version compatible with the latest MAGMA version ?

Thanks a lot for any help,

Gilles

@hongyx11
Copy link

hongyx11 commented Aug 1, 2022

Hi Gilles,

I tried with magma 2.6.0 to build kblas-gpu and it works.
To get magma 2.6.0, use
wget http://icl.utk.edu/projectsfiles/magma/downloads/magma-2.6.0.tar.gz
magma 2.6.2 will fail.
We will look into adapting latest magma.

Best,
Yuxi

@GBZH
Copy link

GBZH commented Aug 2, 2022 via email

@hongyx11
Copy link

hongyx11 commented Aug 2, 2022

Hi Gilles,

  1. H2OPUS expose a marco H2OPUS_USE_MAGMA_POTRF to switch potrf backend.
    in make.inc, add H2OPUS_USE_MAGMA_POTRF=1 then H2OPUS will use magma potrf.
    kblas potrf is still in dev, hope we will soon release and you can test perf of it.

  2. Also, to compile H2OPUS shared library, you need to add

COPTS += -fPIC
NVOPTS += -Xcompiler -fPIC

to kblas make.inc.

So please first apply (2) and recompile kblas. Then apply (1) and compile h2opus.

Then you are good to go!

Best,
Yuxi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants