oneapi-src / oneapi-src/oneAPI-samples

adding an unset option for setvars.sh in a modulefile

Open
#1,681 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C++
Stars
1.2k
Forks
745
PR merge metrics
No merged PRs in 30d

Description

Is there a way to unset/unsource setvars.sh within the modulefiles? In other words if I do module unload intel-oneAPI-toolkit/compiler/2023.1.0, and the module file had a source /path/to/setvars.sh what can be added to unset the environment variables?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the modulefiles that source setvars.sh and the module unload behavior for intel-oneAPI-toolkit/compiler/2023.1.0. Determine how environment variables introduced by setvars.sh can be reversed on unload, and document or implement the supported modulefile approach so unloading no longer leaves those variables set.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.