amueller / damascene-python-and-matlab-bindings

Python and matlab bindings for the Damascene CUDA implementation of gPB
13 stars 12 forks source link

Problem with ACML. #4

Open warmspringwinds opened 8 years ago

warmspringwinds commented 8 years ago

Hello.

I have built the library and while running, the program crashes at the part where the ACML is first used (when applying sgetrf function).

I used gfortran version and also tried the ifortran.

Did you get error like this?

amueller commented 8 years ago

no, sorry. maybe try contacting the original authors.

warmspringwinds commented 8 years ago

@amueller Thank you.

After trying gdb I found out that for some reason program crashes at shared library that is related to mkl library, although I specified all the paths to ACML.

I am using anaconda. I think I should add something to setup.py or cmake but not sure. Sorry for taking your time. Do you have any guess in this case?

Thank you.

amueller commented 8 years ago

It's been a couple of years since I worked on this. Try checking all the path's in ccmake. Maybe some didn't get discovered properly or I messed up in the makefile.

warmspringwinds commented 8 years ago

@amueller

I figured it out:

the error was related to the fact that other shared object from MKL library was used instead of ACML's one.

I think that this error will happen for anyone using Anaconda >= 2.5. This is the version where they included MKL versions of numpy.

My hacky workaround was that I have just updated anaconda not to use MKL like here: https://www.continuum.io/blog/developer-blog/anaconda-25-release-now-mkl-optimizations

This might be useful for someone in the future.