Welcome to our Support Center

Set Platform

Description

Sets the type of execution of the model and how it works. If you have a CUDA-compatible graphics card you can perform the calculation with your GPU.

Do not forget to install CUDA only with the HAIBAL CUDA installer before using this function to avoid any error (CUDA installation guide).

Input parameters

 

Model in : model architecture.

Memory Exec : cluster

Β Mode : enum, mode of operation for internal platform memory management. This involved only GPU device.

      • FreePtr : Dynamic create and free memory access after internal utilisation in individual forward/backward layer process.
      • AvailablePtr : Creates memory without dynamic free process to permit reusability of it.

These both way of memory management also require to use this function at the end of the whole process to free all GPU platform allocated memory.

Β Device : enum, device where the calculation will be made.

Output parameters

 

Model out : model architecture.

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install HAIBAL library to run it).

Using the β€œSet Platform” function

1 – Define Graph

We define the graph with one input and two Dense layers named Dense1 and Dense2.

2 – Set Function

We use the function “Set Platform” to set the type of execution of the model and how it works.

3 – Get Function

We use the function “Get Platform” to get the type of execution of the model and how it works.

Table of Contents