Re: [Yade-dev] cholmod / GPU integration

2018-02-26 Thread Bruno Chareyre



On 02/23/2018 08:37 PM, Robert Caulk wrote:
I compared flow.useSolver=3  to flow.useSolver=4 using oedometer.py  
(on gpu and cpu). Results are the same. Did you encounter different 
results for your comparison?


I did not compare but I was expecting similar performances, glad to know 
it is the case. :)

Thanks
Bruno



Best,

Robert

On Fri, Feb 23, 2018 at 7:56 AM Bruno Chareyre 
> wrote:


Hi Robert,
Still a small thing to fix following [1] it seems, although it may
only impact old systems.
On ubuntu 14.04 with libsuitesparse-dev 1:4.2.1-3ubuntu1 it gives:
/FlowBoundingSphereLinSolv.ipp:100:6: error: ‘cholmod_common’ has
no member named ‘useGPU’//
//  com.useGPU=1; //useGPU;/

On the other hand cmake is returning:
-- Disabled features: CHOLMOD_GPU

So an obvious solution was to add a #if (CHOLMOD_GPU == 1) before
the useGPU line [1].
It seems to fix the compile problem. Does it seem ok for you?

Just to be sure: useSolver=3 will use cholmod through eigen and
useSolver=4 will use cholmod directly. It is correct?
Did you compare useSolver=3 and useSolver=4 without gpu? They
should be nearly the same.

Cheers

Bruno


[1]

https://github.com/yade/trunk/commit/60342f55f196bce752897b87ab539a1c2fbf309e



___
Mailing list: https://launchpad.net/~yade-dev

Post to     : yade-dev@lists.launchpad.net

Unsubscribe : https://launchpad.net/~yade-dev

More help   : https://help.launchpad.net/ListHelp






___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] cholmod / GPU integration

2018-02-23 Thread Robert Caulk
Thank you, Bruno

I had no way of testing this without installing 14.04 specifically for that
problem, so I appreciate you helping me solve it.

*So an obvious solution was to add a #if (CHOLMOD_GPU == 1) before the
useGPU line [1]. *
* It seems to fix the compile problem. Does it seem ok for you?*

Yes, that is OK. I will tweak it a bit to make it more versatile.

*Just to be sure: useSolver=3 will use cholmod through eigen and
useSolver=4 will use cholmod directly. It is correct?*
* Did you compare useSolver=3 and useSolver=4 without gpu? They should be
nearly the same.*

Yes that is correct. I compared flow.useSolver=3  to flow.useSolver=4 using
oedometer.py  (on gpu and cpu). Results are the same. Did you encounter
different results for your comparison?

Best,

Robert

On Fri, Feb 23, 2018 at 7:56 AM Bruno Chareyre <
bruno.chare...@3sr-grenoble.fr> wrote:

> Hi Robert,
> Still a small thing to fix following [1] it seems, although it may only
> impact old systems.
> On ubuntu 14.04 with libsuitesparse-dev 1:4.2.1-3ubuntu1 it gives:
> *FlowBoundingSphereLinSolv.ipp:100:6: error: ‘cholmod_common’ has no
> member named ‘useGPU’*
> *  com.useGPU=1; //useGPU;*
>
> On the other hand cmake is returning:
> -- Disabled features: CHOLMOD_GPU
>
> So an obvious solution was to add a #if (CHOLMOD_GPU == 1) before the
> useGPU line [1].
> It seems to fix the compile problem. Does it seem ok for you?
>
> Just to be sure: useSolver=3 will use cholmod through eigen and
> useSolver=4 will use cholmod directly. It is correct?
> Did you compare useSolver=3 and useSolver=4 without gpu? They should be
> nearly the same.
>
> Cheers
>
> Bruno
>
>
> [1] https://github.com/yade/trunk/commit/60342f55f196bce752897b8
> 7ab539a1c2fbf309e
>
> ___
> Mailing list: https://launchpad.net/~yade-dev
> Post to : yade-dev@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~yade-dev
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


[Yade-dev] cholmod / GPU integration

2018-02-23 Thread Bruno Chareyre

Hi Robert,
Still a small thing to fix following [1] it seems, although it may only 
impact old systems.

On ubuntu 14.04 with libsuitesparse-dev 1:4.2.1-3ubuntu1 it gives:
/FlowBoundingSphereLinSolv.ipp:100:6: error: ‘cholmod_common’ has no 
member named ‘useGPU’//

//  com.useGPU=1; //useGPU;/

On the other hand cmake is returning:
-- Disabled features: CHOLMOD_GPU

So an obvious solution was to add a #if (CHOLMOD_GPU == 1) before the 
useGPU line [1].

It seems to fix the compile problem. Does it seem ok for you?

Just to be sure: useSolver=3 will use cholmod through eigen and 
useSolver=4 will use cholmod directly. It is correct?
Did you compare useSolver=3 and useSolver=4 without gpu? They should be 
nearly the same.


Cheers

Bruno


[1] 
https://github.com/yade/trunk/commit/60342f55f196bce752897b87ab539a1c2fbf309e


___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp