You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL][DOC] Add build instructions for Windows to GetStartedWithSYCLCompiler.md
1. Fixed an error in cmake command for Linux.
2. Added steps for OpenCL-Headers and OpenCL-ICD-Loader components, which
are required.
3. Added Windows build instructions.
4. Made the build process more verbose and clear. You can literally follow
the guide step-by-step to build compiler and tools and run a simple test.
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
[SYCL* Compiler and Runtimes](https://github.com/intel/llvm/releases/tag/2019-07)
18
18
19
-
# Build the SYCL compiler and runtime
19
+
### Get the required tools:
20
+
21
+
a. `git` - for downloading the sources (Get it at https://git-scm.com/downloads)
22
+
23
+
b. `cmake` - for building the compiler and tools, version 3.2 or later (Get it at: http://www.cmake.org/download)
24
+
25
+
c. `python` - for building the compiler and running tests (Get it at: https://www.python.org/downloads/release/python-2716/ )
26
+
27
+
d. `Visual Studio 2017 or later` (Windows only. Get it at: https://visualstudio.microsoft.com/downloads/)
28
+
29
+
30
+
# Configure environment:
31
+
For simplicity it is assumed below that the environment variable SYCL_HOME contains path to a folder where the SYCL compiler and runtime will be stored.
Open a developer command prompt using one of tho methods:
39
+
- Click start menu and search for the command prompt. So, for MSVC-2017 it is '`x64 Native Tools Command Prompt for VS 2017`'
40
+
- run 'cmd' and then '`"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64`'
41
+
42
+
```bash
43
+
set SYCL_HOME=%USERPROFILE%\workspaces\sycl_workspace
44
+
mkdir %SYCL_HOME%
45
+
```
46
+
# Get `OpenCL-Headers` and `OpenCL-ICD-Loader`
47
+
48
+
**These 2 steps are optional.** The Compiler build process is going to look for available OpenCL SDK on the local machine.
49
+
If it finds suitable OpenCL, it will reuse it. Otherwise, it will automatically download `OpenCL-Headers` and `OpenCL-ICD-Loader` from GitHub and build it.
50
+
You may want to run these steps if have some unexpected problems caused by `OpenCL-Headers` or `OpenCL-ICD-Loader` at the compiler build phase.
0 commit comments