VUDA: A Vulkan Implementation of CUDA

VUDA

VUDA is a header-only library based on Vulkan that provides a CUDA Runtime API interface for writing GPU-accelerated applications.

Documentation

VUDA is based on the Vulkan API. The functionality of VUDA conforms (as much as possible) to the specification of the CUDA runtime. For normal usage consult the reference guide for the NVIDIA CUDA Runtime API, otherwise check the VUDA wiki:

Usage

All VUDA functionality can be accessed by including vuda.hpp and using its namespace vuda::.
Alternatively, one can utilize vuda_runtime.hpp which wraps and redirect all CUDA functionality.

add.spv", "main", stream_id, blocks, threads, dev_a, dev_b, dev_c, N); #endif // copy result to host cudaMemcpy(c, dev_c, N * sizeof(int), cudaMemcpyDeviceToHost); // do something useful with the result in array c ... // free memory on device cudaFree(dev_a); cudaFree(dev_b); cudaFree(dev_c); }

Read More

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.