目录

Constructor

Function Description

Creates a Matmul single-core tiling object, multi-core tiling object, or BatchMatmul tiling object.

Function Prototype

Parameters

Table 1 Parameters

Parameter Input/Output Description
ascendcPlatform Input Hardware platform information. For details about the definition of PlatformAscendC, see PlatformAscendC Overview.
platform Input

Hardware version and memory size of each hardware unit in the AI Core that are passed. PlatformInfo is obtained through PlatformAscendC Overview during construction.

The parameters of the PlatformInfo structure are defined as follows. The socVersion is obtained and transparently transmitted through GetSocVersion. The storage space size of each hardware is obtained and transparently transmitted through GetCoreMemSize.

- platform_ascendc::SocVersion socVersion;

- uint64_t l1Size = 0;

- uint64_t l0CSize = 0;

- uint64_t ubSize = 0;

- uint64_t l0ASize = 0;

- uint64_t l0BSize = 0;

You are advised not to invoke the constructor by directly filling a value to construct PlatformInfo, for example, PlatformInfo(, 1024, 1024, ..);

platform_ascendc::PlatformAscendC is used to obtain hardware platform information, such as the number of cores on a hardware platform for tiling computation to implement the tiling function on the host. The PlatformAscendC class provides a function for obtaining such platform information.

Different from platform_ascendc::PlatformAscendC, PlatformInfo is used to obtain information specific to a single AI Core, such as the chip version and the memory size provided by each hardware unit in the AI Core.

Precautions

None

Usage Examples