summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiros <andyspiros@gmail.com>2011-06-15 02:56:22 +0200
committerspiros <andyspiros@gmail.com>2011-06-15 02:56:22 +0200
commit51b442c2fa96111016b8680319163b781cd56aac (patch)
tree8be3e322cbb9e927f7faaf11ae7b882c0afef240 /cblas.py
parentSome bugs solved. (diff)
downloadauto-numerical-bench-51b442c2fa96111016b8680319163b781cd56aac.tar.gz
auto-numerical-bench-51b442c2fa96111016b8680319163b781cd56aac.tar.bz2
auto-numerical-bench-51b442c2fa96111016b8680319163b781cd56aac.zip
Work on BTL LAPACK interface and test suite.
Diffstat (limited to 'cblas.py')
-rw-r--r--cblas.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/cblas.py b/cblas.py
index c3140bd..ad47c65 100644
--- a/cblas.py
+++ b/cblas.py
@@ -4,8 +4,11 @@ import subprocess as sp
class Module(blasbase.ModuleBase):
@staticmethod
def get_impls(root):
- return [i for i in os.listdir(root + "/etc/env.d/alternatives/cblas") \
- if i[0] != '_']
+ output = sp.Popen(
+ ['eselect', '--no-color', '--brief', 'cblas', 'list'],
+ env={'ROOT' : root}, stdout=sp.PIPE
+ ).communicate()[0]
+ return output.strip().split('\n')
def _get_flags(self, root, impl, libdir):
# Retrieve pkgconfig settings and map the directories to the new root