在实现Host侧的Tiling函数时,可能需要获取一些硬件平台的信息,来支撑Tiling的计算,比如获取硬件平台的核数等信息。PlatformAscendC类提供获取这些平台信息的功能。
使用该功能需要包含"tiling/platform/platform_ascendc.h"头文件。样例如下:
#include "tiling/platform/platform_ascendc.h"