Install CBLAS library on windows

本文档详细介绍了如何在Windows上安装CBLAS库,包括选择ATLAS项目,下载源代码,使用Cygwin编译项目,创建MinGW32.dat文件,设置构建和输出目录,执行编译、测试、性能基准测试和安装步骤,以及将生成的.a库转换为.lib/.dll库的过程。还提供了脚本修改和头文件来源的提示。
摘要由CSDN通过智能技术生成

Things quickly turn out that the BLAS(Basic Linear Algebra Subprograms) library is what I need, not only the LAPACK. In the LAPACKE user guide, which can be accessed from: http://netlib.org/lapack/lapacke.html ,there are two examples named "Calling CGEQRF and the CBLAS". I cann't get them correctly complied because I don't have the CBLAS(the C interface to BLAS) library installed.


I have searched accross the web for methods to install CBLAS on windows platform, and found that ATLAS(Automatically Tuned Linear Algebra Software) project is the best choice for me.


The latest version of ATLAS is 3.10.0, and can be downloaded from: http://sourceforge.net/projects/math-atlas/files/ .


I have spended serval days to get ATLAS work properly to generate the CBLAS library that can be directly called in visual studio...


Let's get to the point directly, the tar package downloaded just contains source files and bundle of makefiles, you have compile the project manually to get the tuned CBLAS libs.


To compile the project, first of all, you need to have Cygwin installed. The process is quite simple, download the Setup.exe fromhttp://cygwin.com/setup.exe ,during the installation phase, remember to choose below package:gcc, mingw, make etc..


After unzip the ATLAS package, you will get a folder named./doc. You can find the most important guide there: atlas_install.pdf . The installation guide, together with other documents are some kind of confusing. To put simply, the useful informations

This error message typically occurs when you are trying to compile or link a program that depends on the GNU Scientific Library (GSL), but the necessary include files and libraries are not found. To fix this error, you need to make sure that the GSL is installed on your system and that the compiler/linker can find the necessary files. Here are some steps you can follow: 1. Install the GSL library: Depending on your operating system, you may be able to install the GSL using a package manager (e.g. apt-get, yum, brew) or by downloading and installing it manually from the GSL website. 2. Set the environment variables: Once you have installed the GSL, you need to set the environment variables GSL_INCLUDE_DIR, GSL_LIBRARY, and GSL_CBLAS_LIBRARY to the correct paths. These variables tell the compiler/linker where to find the necessary files. The exact commands to set these variables will depend on your shell and operating system. Here are some examples: - Bash (Linux/Mac): ``` export GSL_INCLUDE_DIR=/path/to/gsl/include export GSL_LIBRARY=/path/to/gsl/lib/libgsl.so export GSL_CBLAS_LIBRARY=/path/to/gsl/lib/libgslcblas.so ``` - Windows Command Prompt: ``` set GSL_INCLUDE_DIR=C:\path\to\gsl\include set GSL_LIBRARY=C:\path\to\gsl\lib\libgsl.dll set GSL_CBLAS_LIBRARY=C:\path\to\gsl\lib\libgslcblas.dll ``` 3. Compile/link your program: With the environment variables set, you should be able to compile/link your program without the missing GSL errors. Make sure to include the appropriate compiler/linker flags to link against the GSL library (e.g. -lgsl -lgslcblas). Note: If you are using a build system (e.g. CMake) to manage your project, you may need to modify the build configuration to include the necessary GSL include directories and libraries. Consult the documentation for your build system for more information.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值