Skip to content

Some issues about createmodule.sh #316

@hongyi-zhao

Description

@hongyi-zhao

Hi,

With the latest git version of modules to test the parallel_studio_xe_2020.0.088.
See the following results:

$ ./createmodule.sh /opt/intel/parallel_studio_xe_2020/psxevars.sh intel64 | awk '$2 == "PATH" ' 
append-path	PATH	/opt/intel/parallel_studio_xe_2020.0.088/bin
prepend-path	PATH	/opt/intel/intelpython3/bin:/opt/intel/intelpython3/condabin:/opt/intel/advisor_2020.0.0.604394/bin64:/opt/intel/vtune_profiler_2020.0.0.605129/bin64:/opt/intel/inspector_2020.0.0.603904/bin64:/opt/intel/itac/2020.0.015/intel64/bin:/opt/intel/itac/2020.0.015/intel64/bin:/opt/intel/clck/2019.6/bin/intel64:/opt/intel/compilers_and_libraries_2020.0.166/linux/bin/intel64:/opt/intel/compilers_and_libraries_2020.0.166/linux/bin:/opt/intel/compilers_and_libraries_2020.0.166/linux/mpi/intel64/libfabric/bin:/opt/intel/compilers_and_libraries_2020.0.166/linux/mpi/intel64/bin:/opt/intel/debugger_2020/gdb/intel64/bin

Why the first entry is append-path?

Furthermore, the above results have duplicate in it:

$ ./createmodule.sh /opt/intel/parallel_studio_xe_2020/psxevars.sh intel64 | awk '$2 == "PATH" { print $NF }' | tr ':' '\n' | sort -u | wc
     13      13     619
$ ./createmodule.sh /opt/intel/parallel_studio_xe_2020/psxevars.sh intel64 | awk '$2 == "PATH" { print $NF }' | tr ':' '\n'  | wc
     14      14     658

For more detail:

$ ./createmodule.sh /opt/intel/parallel_studio_xe_2020/psxevars.sh intel64 | awk '$2 == "PATH" { print $NF }' | tr ':' '\n'  
/opt/intel/parallel_studio_xe_2020.0.088/bin
/opt/intel/intelpython3/bin
/opt/intel/intelpython3/condabin
/opt/intel/advisor_2020.0.0.604394/bin64
/opt/intel/vtune_profiler_2020.0.0.605129/bin64
/opt/intel/inspector_2020.0.0.603904/bin64
/opt/intel/itac/2020.0.015/intel64/bin
/opt/intel/itac/2020.0.015/intel64/bin
/opt/intel/clck/2019.6/bin/intel64
/opt/intel/compilers_and_libraries_2020.0.166/linux/bin/intel64
/opt/intel/compilers_and_libraries_2020.0.166/linux/bin
/opt/intel/compilers_and_libraries_2020.0.166/linux/mpi/intel64/libfabric/bin
/opt/intel/compilers_and_libraries_2020.0.166/linux/mpi/intel64/bin
/opt/intel/debugger_2020/gdb/intel64/bin

The following two lines in the above results are duplicate:

/opt/intel/itac/2020.0.015/intel64/bin
/opt/intel/itac/2020.0.015/intel64/bin

Besides, the following var also has duplicate in the results:

$ ./createmodule.sh /opt/intel/parallel_studio_xe_2020/psxevars.sh intel64 | awk '$2 == "LD_LIBRARY_PATH" ' | tr ':' '\n'  | wc
     15      17    1054
$ ./createmodule.sh /opt/intel/parallel_studio_xe_2020/psxevars.sh intel64 | awk '$2 == "LD_LIBRARY_PATH" ' | tr ':' '\n'  | sort -u | wc
     13      15     902

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions