[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] blas egg and atlas patch
From: |
Stu Glaser |
Subject: |
[Chicken-users] blas egg and atlas patch |
Date: |
Mon, 11 Dec 2006 17:45:14 -0600 |
User-agent: |
Thunderbird 1.5.0.8 (X11/20061113) |
Hi all,
I have changed the blas egg so that it supports ATLAS (Automatically
Tuned Linear Algebra Software). Atlas is an efficient implementation of
BLAS that is automatically tuned for a particular computer.
I have attached the patch (against the eggs svn repository). Please let
me know if the formatting is incorrect.
-Stu
Index: blas/blas.setup
===================================================================
--- blas/blas.setup (revision 2636)
+++ blas/blas.setup (working copy)
@@ -1,17 +1,20 @@
;;;; blas.setup
(define ld-options
- (cond ((test-compile
- "#include <gsl/gsl_cblas.h>\nint main() { cblas_ddot(0, NULL, 0,
NULL, 0); return 0; }"
- ldflags: "-lgsl -lgslcblas -lm")
- "-lgsl -lgslcblas -lm")
- (else (error "unable to figure out BLAS library")) ) )
+ (cond ((test-compile
+ "#include <gsl/gsl_cblas.h>\nint main() { cblas_ddot(0, NULL, 0,
NULL, 0); return 0; }"
+ ldflags: "-lgsl -lgslcblas -lm")
+ (test-compile
+ "#include <atlas/cblas.h>\nint main() { cblas_ddot(0, NULL, 0,
NULL, 0); return 0; }"
+ ldflags: "-lcblas -lm")
+ "-lcblas -lm")
+ (else (error "unable to figure out BLAS library")) ) )
(compile -s -O2 -d0 blas.scm -emit-exports blas.exports -L "\"" ,ld-options
"\"" -X easyffi)
(install-extension
'blas
"blas.so"
- '((version 1.3)
+ '((version 1.4)
(documentation "blas.html")
(exports "blas.exports") ) )
Index: blas/blas.html
===================================================================
--- blas/blas.html (revision 2636)
+++ blas/blas.html (working copy)
@@ -17,6 +17,8 @@
<h3>Version:</h3>
<ul>
+<li>1.4
+Added support for atlas CBLAS library
<li>1.3
Tries to find a proper CBLAS library (currently only GSL)
<li>1.2
- [Chicken-users] blas egg and atlas patch,
Stu Glaser <=