-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCompiling_clBLAS.txt
35 lines (32 loc) · 1.53 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
29
30
31
32
33
34
35
Instructions for compiling clBLAS on Windows 8.1 (Visual Studio 2012):
----------------------------------------------------------------------
0. Follow the OpenCL instructions in README.md
1. git clone git@github.com:clMathLibraries/clBLAS.git
1.1 Note: As of Dec 10th 2015 the master branch of the above repo is broken. Check out the develop branch.
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 12 2013 Win64 compiler)
7. Change CMAKE_BUILD_TYPE to RELEASE
8. Press "Configure" again
9. Press "Generate"
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"
Instructions for compiling clBLAS on Ubuntu 14.04 (gcc):
--------------------------------------------------------
1. git clone git@github.com:clMathLibraries/clBLAS.git
2. cd clBLAS/src
3. mkdir build; cd build
4. cmake .. -DBUILD_TEST=OFF
4.1 (you may need to follow the instructions here: /~https://github.com/clMathLibraries/clBLAS/issues/117)
5. make