AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
MPISync.cl.in File Reference

Manipulate the mask to can count the number of components to download. (See Aqua::CalcServer::MPISync for details) More...

Functions

__kernel void n_offset_mask (const __global usize *mask, __global usize *submask, const unsigned int proc, const usize N)
__kernel void n_send_mask (const __global usize *mask, __global usize *submask, const unsigned int proc, const usize N)
__kernel void set_mask (__global usize *mask, const unsigned int proc, const usize offset, const usize n)

Detailed Description

Manipulate the mask to can count the number of components to download. (See Aqua::CalcServer::MPISync for details)

Note
The header CalcServer/MPISync.hcl.in is automatically appended.

Function Documentation

◆ n_offset_mask()

__kernel void n_offset_mask ( const __global usize * mask,
__global usize * submask,
const unsigned int proc,
const usize N )

Extract the submask from the selected process

Parameters
maskOriginal processes mask
submaskMask of the selected process
procSelected process
NNumber of elements into the mask

◆ n_send_mask()

__kernel void n_send_mask ( const __global usize * mask,
__global usize * submask,
const unsigned int proc,
const usize N )

Extract the submask from the selected process

Parameters
maskOriginal processes mask
submaskMask of the selected process
procSelected process
NNumber of elements into the mask

◆ set_mask()

__kernel void set_mask ( __global usize * mask,
const unsigned int proc,
const usize offset,
const usize n )

Set mask value

Parameters
maskProcesses mask
procSelected process
offsetFirst element to be set
nNumber of elements to be set