Code Monkey home page Code Monkey logo

Comments (17)

smjenness avatar smjenness commented on July 20, 2024 1

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

from epimodelhpc.

AdrienLeGuillou avatar AdrienLeGuillou commented on July 20, 2024

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?

from epimodelhpc.

smjenness avatar smjenness commented on July 20, 2024

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

from epimodelhpc.

AdrienLeGuillou avatar AdrienLeGuillou commented on July 20, 2024

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]

from epimodelhpc.

smjenness avatar smjenness commented on July 20, 2024

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

from epimodelhpc.

AdrienLeGuillou avatar AdrienLeGuillou commented on July 20, 2024
[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]

from epimodelhpc.

smjenness avatar smjenness commented on July 20, 2024

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

from epimodelhpc.

AdrienLeGuillou avatar AdrienLeGuillou commented on July 20, 2024

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]

from epimodelhpc.

smjenness avatar smjenness commented on July 20, 2024

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]

from epimodelhpc.

AdrienLeGuillou avatar AdrienLeGuillou commented on July 20, 2024

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

from epimodelhpc.

smjenness avatar smjenness commented on July 20, 2024

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

from epimodelhpc.

AdrienLeGuillou avatar AdrienLeGuillou commented on July 20, 2024

no, just spack load [email protected]

from epimodelhpc.

smjenness avatar smjenness commented on July 20, 2024

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]

from epimodelhpc.

AdrienLeGuillou avatar AdrienLeGuillou commented on July 20, 2024

my bad, I read to fast.

It worked this time.

from epimodelhpc.

smjenness avatar smjenness commented on July 20, 2024

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

from epimodelhpc.

AdrienLeGuillou avatar AdrienLeGuillou commented on July 20, 2024

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

from epimodelhpc.

AdrienLeGuillou avatar AdrienLeGuillou commented on July 20, 2024

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

from epimodelhpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.