level-zero icon indicating copy to clipboard operation
level-zero copied to clipboard

Add build instructions for Windows

Open ivorobts opened this issue 4 years ago • 3 comments

ivorobts avatar May 21 '21 20:05 ivorobts

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

jjfumero avatar May 24 '21 07:05 jjfumero

@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.

Jemale avatar May 24 '21 16:05 Jemale

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.

ivorobts avatar Jun 02 '21 22:06 ivorobts