potential bug in version 2018-02-13.git-f9cac61 : undefined variable in lib/triangulation/FlowBoundingSphereLinSolv.ipp

Asked by Payam

Hello,

There seems to be an error in the latest trunk version (yade-2018-02-13.git-f9cac61). On compiling this version, I get the error
'FlowBoundingSphereLinSolv.ipp:98:6: error: 'cholmod_common' has no member named 'useGPU''. It looks like this variable is not used anywhere and commenting this makes the compilation work.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Payam
Solved:
Last query:
Last reply:
Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#1

Oh yes, it makes sense. We will need a #ifdef.
Bruno

Revision history for this message
Robert Caulk (rcaulk) said :
#2

Sorry, I will make the change ASAP.

Revision history for this message
Robert Caulk (rcaulk) said :
#3

Hello Payam,

So I have a suspicion and I need your help to test it.

Firstly, I cannot recreate the compilation error with my current setup - and this is likely because the current libsuitesparse-dev debian package has the useGPU flag. I suspect you are using an older version of libsuitesparse-dev. Can you verify this suspicion for me by copying and pasting the output of:

dpkg -l | grep libsuitesparse-dev
(or maybe you are using libsuitesparse-metis-dev on Ubuntu 12.04 or 14.04?)

to this thread? Will you also please report your Linux distribution?

I'd like to make sure all users with SuiteSparse version 4 or greater can use flow.useSolver=4. So I've added SuiteSparse version detection in cMake to prevent users with older suitesparse libraries from trying to compile newer suitesparse code.

Can you go ahead and try to compile the code with my newest commits? Let me know what happens.

Cheers,

Robert

Revision history for this message
Payam (payam-sadrabadi) said :
#4

Hi,

The linux distribution we use is : debian jessie, version id = 8
and the libsuitesparse-dev is : libsuitesparse-dev:amd64 1:4.2.1-3.

I haven't compiled the latest version yet. I would let you know once i do it.

Thanks.