在Stream中记录一个Event,同步接口。
接口调用顺序:aclrtCreateEvent-->aclrtRecordEvent-->aclrtStreamWaitEvent-->aclrtResetEvent
Atlas 200/300/500 推理产品,单个Device上最多支持1023个Event。
Atlas 推理系列产品,单个Device上最多支持1023个Event。
Atlas 训练系列产品,单个Device上最多支持65535个Event。
Atlas A2训练系列产品,单个Device上最多支持65535个Event。
aclError aclrtRecordEvent(aclrtEvent event, aclrtStream stream)
参数名 |
输入/输出 |
说明 |
---|---|---|
event |
输入 |
待记录的Event。 |
stream |
输入 |
将指定Event记录在指定的Stream中。 如果使用默认Stream,此处设置为NULL。 |
返回0表示成功,返回其它值表示失败。