summaryrefslogtreecommitdiff
path: root/lib/spack/llnl/util/tty/log.py
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-06-07 18:57:26 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2019-06-07 09:57:26 -0700
commit6d56d4545472ddff1cdc0e8fd49d8260428a141e (patch)
tree957a23e8bc69f7ea6d51edddedde308bcf1afa38 /lib/spack/llnl/util/tty/log.py
parent9c1c50fb7632d179cae32b28e4561c9e041b97f0 (diff)
downloadspack-6d56d4545472ddff1cdc0e8fd49d8260428a141e.tar.gz
spack-6d56d4545472ddff1cdc0e8fd49d8260428a141e.tar.bz2
spack-6d56d4545472ddff1cdc0e8fd49d8260428a141e.tar.xz
spack-6d56d4545472ddff1cdc0e8fd49d8260428a141e.zip
Compiler search uses a pool of workers (#10190)
- spack.compilers.find_compilers now uses a multiprocess.pool.ThreadPool to execute system commands for the detection of compiler versions. - A few memoized functions have been introduced to avoid poking the filesystem multiple times for the same results. - Performance is much improved, and Spack no longer fork-bombs the system when doing a `compiler find`
Diffstat (limited to 'lib/spack/llnl/util/tty/log.py')
-rw-r--r--lib/spack/llnl/util/tty/log.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/llnl/util/tty/log.py b/lib/spack/llnl/util/tty/log.py
index 9bc2ee3915..b061e13b0e 100644
--- a/lib/spack/llnl/util/tty/log.py
+++ b/lib/spack/llnl/util/tty/log.py
@@ -5,6 +5,8 @@
"""Utility classes for logging the output of blocks of code.
"""
+from __future__ import unicode_literals
+
import multiprocessing
import os
import re