oneapi-src / level-zero

oneAPI Level Zero Specification Headers and Loader
https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
MIT License
208 stars 90 forks source link

Add build instructions for Windows #58

Open ivorobts opened 3 years ago

jjfumero commented 3 years ago

Hi @ivorobts , any reason to alter the build instructions from the Linux build?

This also works on Windows, assuming the Spectre-mitigation libraries are installed (see https://github.com/oneapi-src/level-zero/issues/56):

mkdir build
cd build
cmake ..
cmake --build . --config Release
Jemale commented 3 years ago

@ivorobts Ditto what @jjfumero said. You could list the default CMake invocation and provide setting the nmake generator as a separate example if you want.

ivorobts commented 3 years ago

Hi @ivorobts , any reason to alter the build instructions from the Linux build?

This also works on Windows, assuming the Spectre-mitigation libraries are installed (see #56):

mkdir build
cd build
cmake ..
cmake --build . --config Release

The reason is that I was not able to compile it on Windows without additional actions, e.g. Spectre-mitigation libraries installation. Usage of nmake was much more easier for me. But I agree that we can add instructions for Windows with Visual Studio and the additional way with makefile&nmake.