Files
AMD-SHARK-Studio/cpp
2022-09-13 07:06:47 -07:00
..
2022-09-13 07:06:47 -07:00
2022-09-12 07:12:57 -07:00

SHARK C/C++ Samples

These C/C++ samples can be built using CMake. The samples depend on the main IREE project's C/C++ sources, including both the runtime and the compiler.

cmake -GNinja -B build/
cmake --build build/

Individual samples may require additional dependencies. Watch CMake's output for information about which you are missing for individual samples.

On Windows we recommend using https://github.com/microsoft/vcpkg to download packages for your system. The general setup flow looks like

vcpkg install [library] --triplet [your platform]
vcpkg integrate install

# Then pass `-DCMAKE_TOOLCHAIN_FILE=[check logs for path]` when configuring CMake

In Ubuntu Linux you can install

sudo apt install libsdl2-dev