cuda-api-wrappers/0.7.0-b2

Thin, unified, C++-flavored wrappers for the CUDA APIs
Recipe info
2024-03-01

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
cuda-api-wrappers/0.7.0-b2

Using cuda-api-wrappers

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
cuda-api-wrappers/0.7.0-b2
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("cuda-api-wrappers/0.7.0-b2")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): cuda-api-wrappers
  • CMake target name(s): cuda-api-wrappers::cuda-api-wrappers
  • pkg-config file name(s): cuda-api-wrappers.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(cuda-api-wrappers REQUIRED)
# ...
target_link_libraries(YOUR_TARGET cuda-api-wrappers::cuda-api-wrappers)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the cuda-api-wrappers homepage listed above:

#include "cuda/api.hpp"
#include "cuda/api/array.hpp"
#include "cuda/api/common_ptx_compilation_options.hpp"
#include "cuda/api/constants.hpp"
#include "cuda/api/context.hpp"
#include "cuda/api/copy_parameters.hpp"
#include "cuda/api/current_context.hpp"
#include "cuda/api/current_device.hpp"
#include "cuda/api/detail/device_properties.hpp"
#include "cuda/api/detail/for_each_argument.hpp"
#include "cuda/api/detail/optional.hpp"
#include "cuda/api/detail/pci_id.hpp"
#include "cuda/api/detail/span.hpp"
#include "cuda/api/device.hpp"
#include "cuda/api/device_properties.hpp"
#include "cuda/api/devices.hpp"
#include "cuda/api/error.hpp"
#include "cuda/api/event.hpp"
#include "cuda/api/external.hpp"
#include "cuda/api/graph/identify.hpp"
#include "cuda/api/graph/instance.hpp"
#include "cuda/api/graph/node.hpp"
#include "cuda/api/graph/node_builder.hpp"
#include "cuda/api/graph/template.hpp"
#include "cuda/api/graph/typed_node.hpp"
#include "cuda/api/ipc.hpp"
#include "cuda/api/kernel.hpp"
#include "cuda/api/kernel_launch.hpp"
#include "cuda/api/kernels/apriori_compiled.hpp"
#include "cuda/api/kernels/in_library.hpp"
#include "cuda/api/launch_config_builder.hpp"
#include "cuda/api/launch_configuration.hpp"
#include "cuda/api/library.hpp"
#include "cuda/api/link.hpp"
#include "cuda/api/link_options.hpp"
#include "cuda/api/memory.hpp"
#include "cuda/api/memory_pool.hpp"
#include "cuda/api/miscellany.hpp"
#include "cuda/api/module.hpp"
#include "cuda/api/multi_wrapper_impls/apriori_compiled_kernel.hpp"
#include "cuda/api/multi_wrapper_impls/array.hpp"
#include "cuda/api/multi_wrapper_impls/context.hpp"
#include "cuda/api/multi_wrapper_impls/device.hpp"
#include "cuda/api/multi_wrapper_impls/event.hpp"
#include "cuda/api/multi_wrapper_impls/graph.hpp"
#include "cuda/api/multi_wrapper_impls/ipc.hpp"
#include "cuda/api/multi_wrapper_impls/kernel.hpp"
#include "cuda/api/multi_wrapper_impls/kernel_launch.hpp"
#include "cuda/api/multi_wrapper_impls/launch_configuration.hpp"
#include "cuda/api/multi_wrapper_impls/library_kernel.hpp"
#include "cuda/api/multi_wrapper_impls/link.hpp"
#include "cuda/api/multi_wrapper_impls/memory.hpp"
#include "cuda/api/multi_wrapper_impls/module.hpp"
#include "cuda/api/multi_wrapper_impls/pointer.hpp"
#include "cuda/api/multi_wrapper_impls/stream.hpp"
#include "cuda/api/multi_wrapper_impls/unique_region.hpp"
#include "cuda/api/multi_wrapper_impls/unique_span.hpp"
#include "cuda/api/multi_wrapper_impls/virtual_memory.hpp"
#include "cuda/api/pci_id.hpp"
#include "cuda/api/peer_to_peer.hpp"
#include "cuda/api/pointer.hpp"
#include "cuda/api/primary_context.hpp"
#include "cuda/api/region.hpp"
#include "cuda/api/stream.hpp"
#include "cuda/api/texture_view.hpp"
#include "cuda/api/types.hpp"
#include "cuda/api/unique_region.hpp"
#include "cuda/api/unique_span.hpp"
#include "cuda/api/versions.hpp"
#include "cuda/api/virtual_memory.hpp"
#include "cuda/define_specifiers.hpp"
#include "cuda/nvtx.hpp"
#include "cuda/nvtx/profiling.hpp"
#include "cuda/rtc.hpp"
#include "cuda/rtc/compilation_options.hpp"
#include "cuda/rtc/compilation_output.hpp"
#include "cuda/rtc/detail/marshalled_options.hpp"
#include "cuda/rtc/detail/string_view.hpp"
#include "cuda/rtc/error.hpp"
#include "cuda/rtc/name_caching_program.hpp"
#include "cuda/rtc/program.hpp"
#include "cuda/rtc/types.hpp"
#include "cuda/rtc/versions.hpp"
#include "cuda/runtime_api.hpp"
#include "cuda/undefine_specifiers.hpp"