A RetroSearch Logo

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

Search Query:

Showing content from https://arrayfire.org/docs/group__device__func__alloc__host.htm below:

ArrayFire: allocHost

Allocate memory on host. More...

Allocate memory on host.

This function is used for allocating regular memory on host. This is useful where the compiler version of ArrayFire library is different from the executable's compiler version.

It does not use ArrayFire's memory manager.

◆ af_alloc_host() ◆ allocHost() [1/2] AFAPI T * allocHost ( const size_t  elements )

Allocate memory on host.

Allocate memory on host.

This function is used for allocating regular memory on host. This is useful where the compiler version of ArrayFire library is different from the executable's compiler version.

It does not use ArrayFire's memory manager.

Parameters
[in] elements the number of elements to allocate
Returns
the pointer to the memory
Note
the size of the memory allocated is the number of elements * sizeof(type)
◆ allocHost() [2/2] AFAPI void * allocHost ( const size_t  elements, const dtype  type  )

Allocate memory on host.

Allocate memory on host.

This function is used for allocating regular memory on host. This is useful where the compiler version of ArrayFire library is different from the executable's compiler version.

It does not use ArrayFire's memory manager.

Parameters
[in] elements the number of elements to allocate [in] type is the type of the elements to allocate
Returns
the pointer to the memory

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