forked from bluekidds/jtorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Compiling_clBLAS.txt
28 lines (26 loc) · 1.33 KB
/
Compiling_clBLAS.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Instructions for compiling clBLAS on Windows 8.1 (Visual Studio 2012):
----------------------------------------------------------------------
1. git clone [email protected]:clMathLibraries/clBLAS.git
2. Open cmake gui (You need 2.8 or greater)
3. "Browse Source" --> C:/path/to/clBLAS/src
4. "Browse Build" --> C:/path/to/clBLAS/build
6. Press "Configure" (use Visual Studio 11 2012 Win64 compiler)
7. Change CMAKE_BUILD_TYPE to RELEASE
8. Press "Configure" again
9. Press "Generate"
10. Open C:/path/to/clBLAS/src/library/blas/generic/common.c
-> Comment out line 530: " addBuildOpt(opts, BUILD_OPTS_MAXLEN, "-g");"
10. Open C:/path/to/clBLAS/build/clBLAS.sln
11. Change from Debug to Release
12. Right click clBLAS in the Solution Explorer,
-> change "Configuration Type" to "Static library"
-> change "Target Extension" to ".lib"
13. Build->Build Solution
14. Output library is in C:/path/to/clBLAS/build/staging/Release/clBLAS.lib
15. <clBLAS.h> header is in C:/path/to/clBLAS/src/
16. Change from Release to Debug
12. Right click clBLAS in the Solution Explorer,
-> change "Configuration Type" to "Static library"
-> change "Target Extension" to "_d.lib"
Alternatively, you can download the pre-compiled static libraries for windows (compiled using VS2012 Win 8.1 64bit) here:
http://blackbox.cs.nyu.edu/clBLAS_win8.1_64bit.zip