RE: [easybuild] Assertion error for PyTorch-0.3.1 with intelcuda-2017b

2019-02-27 Thread Vanzo, Davide
Lars,

Thank you for the feedback.
So, using gnu++11 solves the problem but creates a new one. With that standard 
nvcc+icc goes bananas and throws undefined __float128 identifier errors.
I'll try to go down the route of fixing the object.

--
Davide Vanzo, PhD
Sr. HPC Research Scientist
Advanced Computing Center for Research and Education (ACCRE)
Vanderbilt University - Hill Center 201
(615)-875-9137
www.vanderbilt.edu/accre


On 2019-02-23 14:49:31-06:00 easybuild-requ...@lists.ugent.be wrote:

In this case, it's kind of rightfully picky - designated initializers like that 
is not standard C++ and normally only exist in C. GNU may happen to expose them 
as part of their GNU flavour of C++.

If you're using `-std=c++11` or such, try `-std=gnu++11`.

You could also try constructing a `pollfd` object before the statement and 
pushing that, or possibly passing `pollfd{.fd = _listen_socket, .events = 
POLLIN}`.

You're probably looking at some fun interaction of GNU extensions with the 
advent of initializer_list:s in C++11.

// Lars

From: easybuild-requ...@lists.ugent.be easybuild-requ...@lists.ugent.be 
on behalf of Kenneth Hoste kenneth.ho...@ugent.be
Sent: Saturday, February 23, 2019 16:43
To: easybuild@lists.ugent.be
Subject: Re: [easybuild] Assertion error for PyTorch-0.3.1 with intelcuda-2017b

On 22/02/2019 22:10, Vanzo, Davide wrote:
gt; Hello all!
gt;
gt; I am trying to build PyTorch-0.3.1 with intelcuda-2017b but I am 
hitting
gt; the error I reported below. Has anybody seen anything similar before?
gt;
gt; 
/tmp/PyTorch/0.3.1/intelcuda-2017b-Python-3.6.3/pytorch-0.3.1/torch/lib/THD/base/data_channels/Store.cpp(44):
gt; error: no instance of overloaded function "std::vectorlt;_Tp,
gt; _Allocgt;::push_back [with _Tp=pollfd, 
_Alloc=std::allocatorpollfd]"
gt; matches the argument list
gt;  argument types are: ({...})
gt;  object type is: std::vectorpollfd, 
std::allocatorpollfd=""gt;
gt;  fds.push_back({ .fd = _listen_socket, .events = POLLIN });
gt;  ^
gt; 
/opt/easybuild/software/Core/GCCcore/6.4.0/include/c++/6.4.0/bits/stl_vector.h(932):
gt; note: this candidate was rejected because arguments do not match
gt;  push_back(value_typeamp;amp; __x)
gt;  ^
gt; 
/opt/easybuild/software/Core/GCCcore/6.4.0/include/c++/6.4.0/bits/stl_vector.h(914):
gt; note: this candidate was rejected because arguments do not match
gt;  push_back(const value_typeamp; __x)
gt;  ^
gt; 
/tmp/PyTorch/0.3.1/intelcuda-2017b-Python-3.6.3/pytorch-0.3.1/torch/lib/THD/base/data_channels/Store.cpp(44):
gt; internal error: assertion failed at: "shared/cfe/edgcpfe/exprutil.c",
gt; line 747
gt;  fds.push_back({ .fd = _listen_socket, .events = POLLIN });
gt;  ^
gt; compilation aborted for
gt; 
/tmp/PyTorch/0.3.1/intelcuda-2017b-Python-3.6.3/pytorch-0.3.1/torch/lib/THD/base/data_channels/Store.cpp
gt; (code 4)


Can you share the easyconfig file, so we can try to reproduce this?

It's probably the Intel compilers being a bit picky here, wouldn't be
the first time...

Looks like it may just need some convincing with a cast or something?

My C++ is too rusty to quickly figure this out though...

Maybe this helps:
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.reddit.com%2Fr%2Fcpp_questions%2Fcomments%2F6cohwk%2Fno_instance_of_overloaded_function_vector_problem%2Famp;data=02%7C01%7Cdavide.vanzo%40vanderbilt.edu%7C54ba0b2837ec49b51b4e08d699d066af%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636865517700155185amp;sdata=ry7KfirvByw9Q6JhqwByAllUBn%2BGCFQekZV2kDCLZUs%3Damp;reserved=0
.


regards,

Kenneth
/pollfd,/pollfd/kenneth.ho...@ugent.be/easybuild-requ...@lists.ugent.be


[easybuild] MATLAB: Adding update to ISOs

2019-02-27 Thread Loris Bennett
Hi,

I am trying to build a tgz-file for MATLAB 2018b which EasyBuild can
digest.  I have downloaded the two ISO images, mounted them and rsynced
the data to a single directory.  However, there is an update in the form
of zip-file

  R2018b_Update_3_Linux_package.zip

which contains

  R2018b_Update_3_Linux_package
  |-- R2018b
  |   |-- common
  |   |-- doc_ja
  |   |-- doc_ko
  |   |-- doc_zh
  |   |-- glnxa64
  |   |-- platform_common.zip
  |   `-- platform_glnxa64.zip
  |-- R2018b_Update_1
  |   |-- common
  |   |-- doc_ja
  |   |-- doc_ko
  |   |-- doc_zh
  |   |-- glnxa64
  |   |-- platform_common.zip
  |   `-- platform_glnxa64.zip
  `-- R2018b_Update_2
  |-- common
  |-- glnxa64
  |-- platform_common.zip
  `-- platform_glnxa64.zip

How should the update be copied to the data extracted from the ISOs?

Cheers,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de


Re: [easybuild] Lmod clean up

2019-02-27 Thread Joachim Hein
Alan and Åke

Thanks we are going to study that and get back if we don’t get ontop of the 
issue.

Ta
   Joachim

On 27 Feb 2019, at 11:25, Alan O'Cais 
mailto:a.oc...@fz-juelich.de>> wrote:

Sorry, that is for TCL modules, not sure which format you are using 
(https://lmod.readthedocs.io/en/latest/098_dependent_modules.html?highlight=%22module-info%22#always-load-a
 has both)

On Wed, 27 Feb 2019 at 11:22, Alan O'Cais 
mailto:a.oc...@fz-juelich.de>> wrote:
Example of thiis approach at (for load rather than unload):
https://lmod.readthedocs.io/en/latest/190_Integration_of_EasyBuild_and_Lmod.html?highlight=mode#example-use-own-eb-append

On Wed, 27 Feb 2019 at 11:17, Åke Sandgren 
mailto:ake.sandg...@hpc2n.umu.se>> wrote:
use
if (mode() == "unload") ?

On 2/27/19 11:09 AM, Joachim Hein wrote:
> Hi,
>
> This is more an Lmod than an Easybuild question, I hope it still ok to ask 
> here.  We have a package that needs an executable to be run when the module 
> is loaded, which we succeeded in.  However when there is a clean-up 
> executable that needs running when the module is unloaded or purged.  Any 
> pointers on how that can be achieved?
>
> Thanks
>Joachim
>

--
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: a...@hpc2n.umu.se   Phone: +46 90 7866134 
Fax: +46 90-580 14
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se


--
Dr. Alan O'Cais
E-CAM Software Manager
Juelich Supercomputing Centre
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone: +49 2461 61 5213
Fax: +49 2461 61 6656
E-mail: a.oc...@fz-juelich.de
WWW:http://www.fz-juelich.de/ias/jsc/EN


--
Dr. Alan O'Cais
E-CAM Software Manager
Juelich Supercomputing Centre
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone: +49 2461 61 5213
Fax: +49 2461 61 6656
E-mail: a.oc...@fz-juelich.de
WWW:http://www.fz-juelich.de/ias/jsc/EN




Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt






Re: [easybuild] Lmod clean up

2019-02-27 Thread Alan O'Cais
Sorry, that is for TCL modules, not sure which format you are using 
(https://lmod.readthedocs.io/en/latest/098_dependent_modules.html?highlight=%22module-info%22#always-load-a
 has both)

On Wed, 27 Feb 2019 at 11:22, Alan O'Cais 
mailto:a.oc...@fz-juelich.de>> wrote:
Example of thiis approach at (for load rather than unload):
https://lmod.readthedocs.io/en/latest/190_Integration_of_EasyBuild_and_Lmod.html?highlight=mode#example-use-own-eb-append

On Wed, 27 Feb 2019 at 11:17, Åke Sandgren 
mailto:ake.sandg...@hpc2n.umu.se>> wrote:
use
if (mode() == "unload") ?

On 2/27/19 11:09 AM, Joachim Hein wrote:
> Hi,
>
> This is more an Lmod than an Easybuild question, I hope it still ok to ask 
> here.  We have a package that needs an executable to be run when the module 
> is loaded, which we succeeded in.  However when there is a clean-up 
> executable that needs running when the module is unloaded or purged.  Any 
> pointers on how that can be achieved?
>
> Thanks
>Joachim
>

--
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: a...@hpc2n.umu.se   Phone: +46 90 7866134 
Fax: +46 90-580 14
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se


--
Dr. Alan O'Cais
E-CAM Software Manager
Juelich Supercomputing Centre
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone: +49 2461 61 5213
Fax: +49 2461 61 6656
E-mail: a.oc...@fz-juelich.de
WWW:http://www.fz-juelich.de/ias/jsc/EN


--
Dr. Alan O'Cais
E-CAM Software Manager
Juelich Supercomputing Centre
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone: +49 2461 61 5213
Fax: +49 2461 61 6656
E-mail: a.oc...@fz-juelich.de
WWW:http://www.fz-juelich.de/ias/jsc/EN




Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt





Re: [easybuild] Lmod clean up

2019-02-27 Thread Alan O'Cais
Example of thiis approach at (for load rather than unload):
https://lmod.readthedocs.io/en/latest/190_Integration_of_EasyBuild_and_Lmod.html?highlight=mode#example-use-own-eb-append

On Wed, 27 Feb 2019 at 11:17, Åke Sandgren 
mailto:ake.sandg...@hpc2n.umu.se>> wrote:
use
if (mode() == "unload") ?

On 2/27/19 11:09 AM, Joachim Hein wrote:
> Hi,
>
> This is more an Lmod than an Easybuild question, I hope it still ok to ask 
> here.  We have a package that needs an executable to be run when the module 
> is loaded, which we succeeded in.  However when there is a clean-up 
> executable that needs running when the module is unloaded or purged.  Any 
> pointers on how that can be achieved?
>
> Thanks
>Joachim
>

--
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: a...@hpc2n.umu.se   Phone: +46 90 7866134 
Fax: +46 90-580 14
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se


--
Dr. Alan O'Cais
E-CAM Software Manager
Juelich Supercomputing Centre
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone: +49 2461 61 5213
Fax: +49 2461 61 6656
E-mail: a.oc...@fz-juelich.de
WWW:http://www.fz-juelich.de/ias/jsc/EN




Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt





Re: [easybuild] Lmod clean up

2019-02-27 Thread Åke Sandgren
use
if (mode() == "unload") ?

On 2/27/19 11:09 AM, Joachim Hein wrote:
> Hi,
> 
> This is more an Lmod than an Easybuild question, I hope it still ok to ask 
> here.  We have a package that needs an executable to be run when the module 
> is loaded, which we succeeded in.  However when there is a clean-up 
> executable that needs running when the module is unloaded or purged.  Any 
> pointers on how that can be achieved?
> 
> Thanks
>Joachim
> 

-- 
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: a...@hpc2n.umu.se   Phone: +46 90 7866134 Fax: +46 90-580 14
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se


[easybuild] Lmod clean up

2019-02-27 Thread Joachim Hein
Hi,

This is more an Lmod than an Easybuild question, I hope it still ok to ask 
here.  We have a package that needs an executable to be run when the module is 
loaded, which we succeeded in.  However when there is a clean-up executable 
that needs running when the module is unloaded or purged.  Any pointers on how 
that can be achieved?

Thanks
   Joachim