This repository contains examples of using different co-processors available on Intel Core Ultra 7 258V processors.
gpu_examples/: Examples that use the Intel Arc GPU as a co-processor via OpenCLnpu_examples/: Examples that use the Intel NPU (Neural Processing Unit) as a co-processor via OpenVINO
The GPU examples use OpenCL to offload computations to the Intel Arc GPU:
- Vector Addition: A simple example that adds two vectors using the GPU
- Matrix Multiplication: A more complex example that performs matrix multiplication using the GPU
cd gpu_examples
makecd gpu_examples
./vector_add
./matrix_mulThe NPU examples use OpenVINO to offload computations to the Intel Neural Processing Unit:
- Matrix Multiplication: Uses the NPU to perform matrix multiplication by creating a simple neural network model
Note: The NPU examples require OpenVINO to be installed. If OpenVINO is not found, the build process will provide instructions for installation.
cd npu_examples
makecd npu_examples
./npu_matrix_mulTo build all examples (both GPU and NPU), simply run:
make- Intel Core Ultra 7 258V processor (or compatible)
- OpenCL runtime for GPU examples
- OpenVINO toolkit for NPU examples