add hipStreamQuery on nvcc, fix hipStreamWaitEvent for nvcc

[ROCm/hip commit: 1f40a73ae1]
此提交包含在:
Ben Sander
2016-09-02 17:24:16 -05:00
父節點 f31bc90537
當前提交 85e7d1799b
共有 2 個檔案被更改,包括 6 行新增0 行删除
+5
查看文件
@@ -489,6 +489,11 @@ inline static hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event
return hipCUDAErrorTohipError(cudaStreamWaitEvent(stream, event, flags));
}
inline static hipError_t hipStreamQuery(hipStream_t stream)
{
return hipCUDAErrorTohipError(cudaStreamQuery(stream));
}
inline static hipError_t hipDriverGetVersion(int *driverVersion)
{
+1
查看文件
@@ -21,6 +21,7 @@ THE SOFTWARE.
#include "hip_runtime.h"
#include "test_common.h"
#include <vector>
unsigned p_streams = 6;