Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change (make flexible) placement of loadR.sh in sbatch_master #10

Open
smjenness opened this issue Aug 5, 2020 · 17 comments
Open

Change (make flexible) placement of loadR.sh in sbatch_master #10

smjenness opened this issue Aug 5, 2020 · 17 comments
Assignees

Comments

@smjenness
Copy link
Collaborator

smjenness commented Aug 5, 2020

cc: @AdrienLeGuillou

After that, change Hyak instructions on https://github.com/statnet/computing/tree/master/slurmLite

after that, address wiki issue here: statnet/computing#6

@smjenness smjenness self-assigned this Aug 5, 2020
@AdrienLeGuillou
Copy link
Member

as we discussed, I changed

#!/bin/bash

. /gscratch/csde/spack/spack/share/spack/setup-env.sh
module load r-4.0.0-gcc-9.2.0-p7wezul

to

#!/bin/bash

. /gscratch/csde/spack/spack/share/spack/setup-env.sh
spack load [email protected]

and it gives me the following error:

==> Error: No compilers for operating system centos7 satisfy spec [email protected]

is there something I am doing differently than you?

@smjenness
Copy link
Collaborator Author

Hmm... no I think it is the same. After you run setup-env can you do: spack find and report the results here.

@AdrienLeGuillou
Copy link
Member

I get this:

[aleguil@mox1 ~]$ . /gscratch/csde/spack/spack/share/spack/setup-env.sh
[aleguil@mox1 ~]$ spack find
==> 170 installed packages
-- linux-centos7-broadwell / [email protected] --------------------------
[email protected]      [email protected]                   [email protected]     [email protected]
[email protected]      [email protected]              [email protected]     [email protected]
[email protected]      [email protected]                [email protected]     [email protected]
[email protected]    [email protected]                [email protected]      [email protected]
[email protected]    [email protected]                   [email protected]      [email protected]
[email protected]    [email protected]                   [email protected]     [email protected]
[email protected]     [email protected]                   [email protected]     [email protected]
[email protected]     [email protected]  [email protected]      [email protected]
[email protected]        [email protected]  [email protected]      [email protected]
[email protected]        [email protected]  [email protected]     [email protected]
[email protected]        [email protected]                   [email protected]          [email protected]
[email protected]       [email protected]                     [email protected]          [email protected]
[email protected]       [email protected]                [email protected]       [email protected]
[email protected]       [email protected]                [email protected]       [email protected]
[email protected]       [email protected]                [email protected]    [email protected]
[email protected]       [email protected]               [email protected]    [email protected]
[email protected]       [email protected]              [email protected]  [email protected]
[email protected]        [email protected]              [email protected]  [email protected]
[email protected]        [email protected]                    [email protected]       [email protected]
[email protected]        [email protected]                    [email protected]        [email protected]
[email protected]      [email protected]                  [email protected]        [email protected]
[email protected]      [email protected]                 [email protected]       [email protected]
[email protected]        [email protected]                  [email protected]     [email protected]
[email protected]        [email protected]                    [email protected]     [email protected]
[email protected]    [email protected]              [email protected]     [email protected]
[email protected]         [email protected]                 [email protected]     [email protected]
[email protected]    [email protected]                 [email protected]       [email protected]
[email protected]  [email protected]           [email protected]       [email protected]
[email protected]  [email protected]           [email protected]       [email protected]
[email protected]  [email protected]           [email protected]          [email protected]
[email protected]   [email protected]                 [email protected]          [email protected]
[email protected]     [email protected]                 [email protected]          [email protected]
[email protected]    [email protected]               [email protected]
[email protected]        [email protected]               [email protected]

-- linux-centos7-haswell / [email protected] ----------------------------
[email protected]              [email protected]  [email protected]                 [email protected]
[email protected]            [email protected]        [email protected]                  [email protected]
[email protected]                [email protected]         lua-luafilesystem@1_7_0_2  [email protected]
[email protected]                [email protected]          [email protected]        [email protected]
[email protected]              [email protected]      [email protected]                  [email protected]
[email protected]  [email protected]     [email protected]                  [email protected]
[email protected]                [email protected]   [email protected]                 [email protected]
[email protected]                  [email protected]     [email protected]                [email protected]
[email protected]                [email protected]     [email protected]             [email protected]

[email protected] is present but I still get the error

==> Error: No compilers for operating system centos7 satisfy spec [email protected]

@smjenness
Copy link
Collaborator Author

Can you restart your session, load spack, and then run spack compiler find. Then try spack load

@AdrienLeGuillou
Copy link
Member

[aleguil@mox1 ~]$ . /gscratch/csde/spack/spack/share/spack/setup-env.sh
[aleguil@mox1 ~]$ spack compiler find
==> Found no new compilers
==> Compilers are defined in the following files:
    /usr/lusers/aleguil/.spack/linux/compilers.yaml
[aleguil@mox1 ~]$ spack load [email protected]
==> Error: No compilers for operating system centos7 satisfy spec [email protected]

@smjenness
Copy link
Collaborator Author

what do you have listed here: ~/.spack/linux/compilers.yaml

@AdrienLeGuillou
Copy link
Member

I was actually looking into it:

compilers:
- compiler:
    paths:
      cc: /usr/bin/gcc
      cxx: /usr/bin/g++
      f77: /usr/bin/gfortran
      fc: /usr/bin/gfortran
    operating_system: centos7
    target: x86_64
    modules: []
    environment:
      unset: []
    extra_rpaths: []
    flags: {}
    spec: [email protected]

@smjenness
Copy link
Collaborator Author

ok try this: spack load [email protected], spack compiler find (this should add 9.2.0 to your .yaml), restart session, load spack, spack load [email protected]

@AdrienLeGuillou
Copy link
Member

does not work either.

[aleguil@mox1 linux]$ spack load [email protected]
[aleguil@mox1 linux]$ spack load [email protected]
==> Error: No compilers for operating system centos7 satisfy spec [email protected]

I think I need to do

spack find <path to gcc 9.2> 

to register it

@smjenness
Copy link
Collaborator Author

wait, did you do spack compiler find after spack load [email protected]?

@AdrienLeGuillou
Copy link
Member

no, just spack load [email protected]

@smjenness
Copy link
Collaborator Author

try this sequence, as suggested above:
spack load [email protected], spack compiler find (this should add 9.2.0 to your .yaml), restart session, load spack, spack load [email protected]

@AdrienLeGuillou
Copy link
Member

my bad, I read to fast.

It worked this time.

@smjenness
Copy link
Collaborator Author

smjenness commented Aug 13, 2020

excellent, can you add this step to any instructions on statnet/computing?
I had it listed here, but this is out of date, and pertains to building GCC and R (mostly for me): https://github.com/statnet/computing/wiki/Build-Hyak-Stack-from-Scratch-with-Spack
anything that lists using spack load needs to include this step of updating the compiler yaml with spack compiler find

@AdrienLeGuillou
Copy link
Member

On it, where on the repo do you want me to put that info?

  • wiki? Build-Hyak-Stack-from-Scratch-with-Spack?
  • reproducible env readme?
  • other

@smjenness
Copy link
Collaborator Author

I was thinking somewhere on this readme: https://github.com/statnet/computing/tree/master/build

@AdrienLeGuillou
Copy link
Member

I updated the "loadR.sh" file in "build" and added an explanation on how to correct the missing compiler error.

I also modified the "reproducible env" README saying that "loadR.sh" should be copied in the project's folder. I made linked to the "build" README so the user can know where to look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants