Skip to content

Conversation

wpbonelli
Copy link

Work in progress — sketched things out, added an OS layer on the component/URL mapping as well as some C/C++ and Fortran compiler versions. I have not found a full list of available versions on the Intel site, maybe there's a resource I'm missing or a better way than manually collecting them.

@rscohn2
Copy link
Owner

rscohn2 commented Jan 23, 2023

I have not found a full list of available versions on the Intel site, maybe there's a resource I'm missing or a better way than manually collecting them.

You can get the current URLs here: https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html. Older Linux URL's are in the spack packages (https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py). The rest are more difficult, but if you only needed a few, I could get them.

@wpbonelli wpbonelli changed the title update component URLs, outline impl Support multiple platforms Jan 23, 2023
? path.join(installPath, 'setvars-vcvarsall.bat')
: path.join(installPath, 'setvars.sh')
console.log(`Running environment init script: ${script}`)
exec.exec(script).then(exitCode => {
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think exec'ing a script will change the environment for future steps. It looks like you need to do exportVariable
from this package https://github.com/actions/toolkit/tree/main/packages/core, similar to the addPath below. It will be hard to do this because there are many variables and many packages. Other tools implemented something that sources setvars.sh and then diffs the previous environment to collect a set of variables, then sets the variables. The compiler should be usable with path and LD_LIBRARY_PATH. The libraries would need CPATH, LIBRARY_PATH. I would save this task for later.

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.

2 participants