diff options
-rw-r--r-- | lib/spack/spack/cmd/external.py | 6 | ||||
-rw-r--r-- | lib/spack/spack/cray_manifest.py | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/external.py b/lib/spack/spack/cmd/external.py index 8b9c845c3e..11f5092626 100644 --- a/lib/spack/spack/cmd/external.py +++ b/lib/spack/spack/cmd/external.py @@ -177,7 +177,10 @@ def _collect_and_consume_cray_manifest_files( for directory in manifest_dirs: for fname in os.listdir(directory): - manifest_files.append(os.path.join(directory, fname)) + if fname.endswith('.json'): + fpath = os.path.join(directory, fname) + tty.debug("Adding manifest file: {0}".format(fpath)) + manifest_files.append(os.path.join(directory, fpath)) if not manifest_files: raise NoManifestFileError( @@ -185,6 +188,7 @@ def _collect_and_consume_cray_manifest_files( .format(cray_manifest.default_path)) for path in manifest_files: + tty.debug("Reading manifest file: " + path) try: cray_manifest.read(path, not dry_run) except (spack.compilers.UnknownCompilerError, spack.error.SpackError) as e: diff --git a/lib/spack/spack/cray_manifest.py b/lib/spack/spack/cray_manifest.py index b78888d258..eba29ed9dd 100644 --- a/lib/spack/spack/cray_manifest.py +++ b/lib/spack/spack/cray_manifest.py @@ -20,6 +20,7 @@ default_path = '/opt/cray/pe/cpe-descriptive-manifest/' compiler_name_translation = { 'nvidia': 'nvhpc', + 'rocm': 'rocmcc', } |