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

added deps and renamed eb script to more precisely reflect toolchain #22

Draft
wants to merge 4 commits into
base: computecanada-main
Choose a base branch
from

Conversation

MatLaradeAcenet
Copy link

No description provided.

Copy link

@ccoulombe ccoulombe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it build with gompi as well?

@MatLaradeAcenet
Copy link
Author

I'm not sure if it builds at all yet, it was erroring because I screwed up the deps. I'll try that when I get the next version pushed.

Copy link

@ccoulombe ccoulombe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it build? Does it build with gompi as well?

@mboisson
Copy link
Member

Just so it does not look like black magic, two ways to figure out how to specify dependencies.

Option 1
Step 1) Identify which module you need. For example, hdf5-mpi/1.10.6
Step 2) Run module show hdf5-mpi/1.10.6
Step 3) Take the $EBROOT<name> environment variable. For example, $EBROOTHDF5
Step 4) Look in $EBROOTHDF5/easybuild the recipe will be there, in this case : HDF5-1.10.6-iompi-2020a-mpi.eb
Step 5) Parse the file name as <name>-<version>-<toolchain name>-<toolchain version>-<version suffix>.eb
That allows one to write the dependency line. In the case above, this gives ('HDF5', '1.10.6', '-mpi') and it tells you that the minimum toolchain you can use is one that uses MPI.

Option 2
Step 1) ls /cvmfs/soft.computecanada.ca/easybuild/ebfiles_repo/2020
Step 2) Identify which of the folder matches what you are looking for. For example, HDF5
Step 3) ls /cvmfs/soft.computecanada.ca/easybuild/ebfiles_repo/2020/HDF5
Step 4) Identify which recipe matches the toolchain you want to use. Then do the same as Step 5) above.

@MatLaradeAcenet
Copy link
Author

MatLaradeAcenet commented Mar 30, 2021

OK, so that's the work that you guys didn't need to do, because you exist in this space every day, but for me to reproudce it, that's how I'd go about doing acquiring that knowledge

@MatLaradeAcenet
Copy link
Author

MatLaradeAcenet commented Mar 30, 2021

There was an error accessing/downloading the file. I think I'm telling it the wrong name for the tar, so I'm going to check that first.


toolchain = {'name': 'iompi', 'version': '2020a'}

source_urls= ['https://github.com/NCAR/ParallelIO/releases/download/pio2_5_3/']
Copy link

@ccoulombe ccoulombe Mar 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The url is : https://github.com/NCAR/ParallelIO/releases/download/pio2_5_3/pio-2.5.3.tar.gz
So the source_urls need to be updated to reflect the version: ".../pio_{}".format(version.replace('.','_'))".
The sources should be pio since the name is ParallelIO, taken from the template variable name.

@@ -1,14 +1,14 @@
easyblock = 'ConfigureMake'

name = 'ParallelIO'
name = 'pio'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name is ParallelIO but set the sources to : sources = ['pio-%(version)s.tar.gz']

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

Successfully merging this pull request may close these issues.

3 participants