#include "kernel_operator.h" #include "acl/acl.h" extern __global__ __vector__ void hello_world(); int32_t main(int argc, char const *argv[]) { aclInit(nullptr); int32_t deviceId = 0; aclrtSetDevice(deviceId); aclrtStream stream = nullptr; aclrtCreateStream(&stream); constexpr uint32_t numBlocks = 8; hello_world<<>>(); aclrtSynchronizeStream(stream); aclrtDestroyStream(stream); aclrtResetDevice(deviceId); aclFinalize(); return 0; }