Re: [deal.II] dealii/spack on apple m1

2021-05-12 Thread Praveen C
Latest spack detects the cpu properly on apple m1.

But installing deal.II via spack leads to many dependencies not able to compile.

However, I could install and run deal.II via docker. It installed the ubuntu 
focal version, which seems to work.

Compiling deal.II code under docker seems somewhat slow, though.

best
praveen

> On 17-Apr-2021, at 9:25 AM, Praveen C  wrote:
> 
> Thanks for pointing this out. I think these recent fixes should be the 
> solution to compiling on M1. I will give it a try.
> 
> best
> praveen
> 
>> On 17-Apr-2021, at 12:26 AM, Jean-Paul Pelteret > > wrote:
>> 
>> Dear Praveen,
>> 
>> Even though you’re trying to install deal.II, it would seem that the issue 
>> that you documented
>> 
>> sysctl: unknown oid 'machdep.cpu.leaf7_features'
>> sysctl: unknown oid 'machdep.cpu.vendor'
>> sysctl: unknown oid 'machdep.cpu.model'
>> sysctl: unknown oid 'machdep.cpu.leaf7_features'
>> sysctl: unknown oid 'machdep.cpu.vendor'
>> sysctl: unknown oid 'machdep.cpu.model'
>> 
>> must be pervasive for all Spack packages. So I think that if you want to get 
>> to the bottom of this, then you should probably raise the question with the 
>> Spack developers. It might in fact be that someone has already raised this 
>> issue with them? 
>> 
>> https://github.com/spack/spack/issues/22273 
>> 
>> https://github.com/spack/spack/issues/22088 
>> 
>> 
>> In fact, there was confirmation of an initial fix on a feature branch just 
>> hours ago:
>> https://github.com/spack/spack/issues/22088#issuecomment-820694521 
>> 

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/3E717487-0BB5-4351-99D7-ACC4493931C1%40gmail.com.


Re: [deal.II] dealii/spack on apple m1

2021-04-16 Thread Praveen C
Thanks for pointing this out. I think these recent fixes should be the solution 
to compiling on M1. I will give it a try.

best
praveen

> On 17-Apr-2021, at 12:26 AM, Jean-Paul Pelteret  wrote:
> 
> Dear Praveen,
> 
> Even though you’re trying to install deal.II, it would seem that the issue 
> that you documented
> 
> sysctl: unknown oid 'machdep.cpu.leaf7_features'
> sysctl: unknown oid 'machdep.cpu.vendor'
> sysctl: unknown oid 'machdep.cpu.model'
> sysctl: unknown oid 'machdep.cpu.leaf7_features'
> sysctl: unknown oid 'machdep.cpu.vendor'
> sysctl: unknown oid 'machdep.cpu.model'
> 
> must be pervasive for all Spack packages. So I think that if you want to get 
> to the bottom of this, then you should probably raise the question with the 
> Spack developers. It might in fact be that someone has already raised this 
> issue with them? 
> 
> https://github.com/spack/spack/issues/22273 
> 
> https://github.com/spack/spack/issues/22088 
> 
> 
> In fact, there was confirmation of an initial fix on a feature branch just 
> hours ago:
> https://github.com/spack/spack/issues/22088#issuecomment-820694521 
> 

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/15C35AD9-6D6B-4B9C-BD27-1AF5327DBEEB%40gmail.com.


Re: [deal.II] dealii/spack on apple m1

2021-04-16 Thread Jean-Paul Pelteret
Dear Praveen,

Even though you’re trying to install deal.II, it would seem that the issue that 
you documented

sysctl: unknown oid 'machdep.cpu.leaf7_features'
sysctl: unknown oid 'machdep.cpu.vendor'
sysctl: unknown oid 'machdep.cpu.model'
sysctl: unknown oid 'machdep.cpu.leaf7_features'
sysctl: unknown oid 'machdep.cpu.vendor'
sysctl: unknown oid 'machdep.cpu.model'

must be pervasive for all Spack packages. So I think that if you want to get to 
the bottom of this, then you should probably raise the question with the Spack 
developers. It might in fact be that someone has already raised this issue with 
them? 

https://github.com/spack/spack/issues/22273 

https://github.com/spack/spack/issues/22088 


In fact, there was confirmation of an initial fix on a feature branch just 
hours ago:
https://github.com/spack/spack/issues/22088#issuecomment-820694521 


Best,
Jean-Paul

> On 15. Apr 2021, at 11:11, Praveen C  wrote:
> 
> Thank you for sharing your experience.
> 
> So it looks like we cannot yet install spack natively, right ?
> 
>> On 15-Apr-2021, at 12:08 PM, Alberto Salvadori > > wrote:
>> 
>> 1 - After opening a terminal rosetta, installing gcc, installing deal.ii via 
>> spack and using gfortran from gcc installation, it works just fine
> 
> Here both gfortran and spack are under rosetta.
> 
>> 2 - Even in a rosetta terminal, the current dmg package does not seem to work
>> 3 - After opening a terminal rosetta, NOT installing gcc, installing deal.ii 
>> via spack and using gfortran from homebrew installation, deal.ii apparently 
>> does not work
> 
> Here gfortran is native but spack is under emulation, which does not work.
> 
>> 4 - I had some issues with openmpi after installation, because of the 
>> dynamic library that apparently conflicts with cmake. My skills are very 
>> limited, but with some further work (that I cannot recall now)
>> I made it, even with Xcode projects.
> 
> Best
> praveen
> 
> -- 
> The deal.II project is located at http://www.dealii.org/ 
> 
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dealii+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/2A8F616D-FF4B-4993-95B1-32BBEE43A00F%40gmail.com
>  
> .

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/8910C8E4-76F0-404B-B689-DBECDA550927%40gmail.com.


Re: [deal.II] dealii/spack on apple m1

2021-04-15 Thread Praveen C
Thank you for sharing your experience.

So it looks like we cannot yet install spack natively, right ?

> On 15-Apr-2021, at 12:08 PM, Alberto Salvadori  
> wrote:
> 
> 1 - After opening a terminal rosetta, installing gcc, installing deal.ii via 
> spack and using gfortran from gcc installation, it works just fine

Here both gfortran and spack are under rosetta.

> 2 - Even in a rosetta terminal, the current dmg package does not seem to work
> 3 - After opening a terminal rosetta, NOT installing gcc, installing deal.ii 
> via spack and using gfortran from homebrew installation, deal.ii apparently 
> does not work

Here gfortran is native but spack is under emulation, which does not work.

> 4 - I had some issues with openmpi after installation, because of the dynamic 
> library that apparently conflicts with cmake. My skills are very limited, but 
> with some further work (that I cannot recall now)
> I made it, even with Xcode projects.

Best
praveen

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/2A8F616D-FF4B-4993-95B1-32BBEE43A00F%40gmail.com.


Re: [deal.II] dealii/spack on apple m1

2021-04-15 Thread Alberto Salvadori
Hi Praveen,

here is my experience on apple M1 and deal.ii.

1 - After opening a terminal rosetta, installing gcc, installing deal.ii
via spack and using gfortran from gcc installation, it works just fine
2 - Even in a rosetta terminal, the current dmg package does not seem to
work
3 - After opening a terminal rosetta, NOT installing gcc, installing
deal.ii via spack and using gfortran from homebrew installation, deal.ii
apparently does not work
4 - I had some issues with openmpi after installation, because of the
dynamic library that apparently conflicts with cmake. My skills are very
limited, but with some further work (that I cannot recall now)
I made it, even with Xcode projects.

Hope it helps
Alberto


*Alberto Salvadori* Dipartimento di Ingegneria Meccanica e Industriale
(DIMI)
 Universita` di Brescia, via Branze 43, 25123 Brescia
 Italy
 tel 030 3715426

e-mail:
 alberto.salvad...@unibs.it
web-page:
 http://m4lab.unibs.it/faculty.html



On Thu, Apr 15, 2021 at 7:00 AM Praveen C  wrote:

> Dear all
>
> Has anyone succeeded in installing dealii via spack on an apple m1 ?
>
> What works/does not work ?
>
> spack gives me a spec but also gives some warnings
>
> $ spack spec dealii
> Input spec
> 
> dealii
>
> Concretized
> 
> sysctl: unknown oid 'machdep.cpu.leaf7_features'
> sysctl: unknown oid 'machdep.cpu.vendor'
> sysctl: unknown oid 'machdep.cpu.model'
> sysctl: unknown oid 'machdep.cpu.leaf7_features'
> sysctl: unknown oid 'machdep.cpu.vendor'
> sysctl: unknown oid 'machdep.cpu.model'
>
> Or have you been able to compile dealii via some other method on m1 ?
>
> Thanks
> praveen
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/CCA9B9D2-AC5B-4327-820D-472FB5AE3BDB%40gmail.com
> 
> .
>

-- 


Informativa sulla Privacy: http://www.unibs.it/node/8155 


-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CABcATpfQ70FmrDAjuE-WhGP4nsHXQWDXw0rsRmQ5KV5rY_tLiA%40mail.gmail.com.


[deal.II] dealii/spack on apple m1

2021-04-14 Thread Praveen C
Dear all

Has anyone succeeded in installing dealii via spack on an apple m1 ?

What works/does not work ?

spack gives me a spec but also gives some warnings

$ spack spec dealii
Input spec

dealii

Concretized

sysctl: unknown oid 'machdep.cpu.leaf7_features'
sysctl: unknown oid 'machdep.cpu.vendor'
sysctl: unknown oid 'machdep.cpu.model'
sysctl: unknown oid 'machdep.cpu.leaf7_features'
sysctl: unknown oid 'machdep.cpu.vendor'
sysctl: unknown oid 'machdep.cpu.model'

Or have you been able to compile dealii via some other method on m1 ?

Thanks
praveen

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CCA9B9D2-AC5B-4327-820D-472FB5AE3BDB%40gmail.com.