access Module

This module contains the access descriptor class and the pre-defined access descriptors to use when passing instances of ParticleDat and ScalarArray to the build system.

Access Type Class

class access.AccessType(mode)

Bases: object

Class to hold an access descriptor for data. In a pyop2 style manner. (WIP)

Parameters:mode (str) – Access mode, must be from: "R", "W", "RW", "INC"
incremented

Does this access perform reductions, True/False. :return: Bool

mode
Returns:The held access mode.
read

Does this access type read the data, True/False. :return: Bool.

write

Does this access type write data, True/False. :return: Bool.

Predefined Access Modes

These should be used when passing instances of ParticleDat or ScalarArray to the build system to declare the access mode required by the associated kernel.

access.RW = Read and write.

Descriptor for data that has accessed for both read and write.

access.R = Read only.

Class to hold an access descriptor for data. In a pyop2 style manner. (WIP)

Parameters:mode (str) – Access mode, must be from: "R", "W", "RW", "INC"
access.W = Write only.

Class to hold an access descriptor for data. In a pyop2 style manner. (WIP)

Parameters:mode (str) – Access mode, must be from: "R", "W", "RW", "INC"
access.INC = Incremental.

Access descriptor for data that is incremented.

Table Of Contents

Previous topic

Generated Module Documentation

Next topic

build Module

This Page