A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://kokkos.github.io/kokkos-core-wiki/API/core/c_style_memory_management/free.html below:

kokkos_free - Kokkos documentation

Back to top

Toggle table of contents sidebar

kokkos_free

Defined in header <Kokkos_Core.hpp>

Deallocates the space previously allocated by Kokkos::kokkos_malloc() or Kokkos::kokkos_realloc() on the specified memory space MemorySpace.

If ptr is a null pointer, the function does nothing.

Description
template<class MemorySpace = Kokkos::DefaultExecutionSpace::memory_space>
void kokkos_free(void *ptr);
Template Parameters:

MemorySpace – Controls the storage location. If omitted the memory space of the default execution space is used (i.e. Kokkos::DefaultExecutionSpace::memory_space).

Parameters:

ptr – The pointer to the memory to deallocate on the specified memory space.

Returns:

(none)

Throws:

Throws std::runtime_error on failure to deallocate.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4