Tento commit je obsažen v:
@@ -359,7 +359,7 @@ hipError_t hipImportExternalSemaphore(hipExternalSemaphore_t* extSem_out,
|
||||
const hipExternalSemaphoreHandleDesc* semHandleDesc);
|
||||
hipError_t hipDrvGraphAddMemsetNode(hipGraphNode_t* phGraphNode, hipGraph_t hGraph,
|
||||
const hipGraphNode_t* dependencies, size_t numDependencies,
|
||||
const HIP_MEMSET_NODE_PARAMS* memsetParams, hipCtx_t ctx);
|
||||
const hipMemsetParams* memsetParams, hipCtx_t ctx);
|
||||
hipError_t hipInit(unsigned int flags);
|
||||
hipError_t hipIpcCloseMemHandle(void* devPtr);
|
||||
hipError_t hipIpcGetEventHandle(hipIpcEventHandle_t* handle, hipEvent_t event);
|
||||
@@ -789,7 +789,7 @@ hipError_t hipDrvGraphAddMemFreeNode(hipGraphNode_t* phGraphNode, hipGraph_t hGr
|
||||
hipError_t hipDrvGraphExecMemcpyNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode,
|
||||
const HIP_MEMCPY3D* copyParams, hipCtx_t ctx);
|
||||
hipError_t hipDrvGraphExecMemsetNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode,
|
||||
const HIP_MEMSET_NODE_PARAMS* memsetParams, hipCtx_t ctx);
|
||||
const hipMemsetParams* memsetParams, hipCtx_t ctx);
|
||||
hipError_t hipSetValidDevices(int* device_arr, int len);
|
||||
hipError_t hipMemcpyAtoD(hipDeviceptr_t dstDevice, hipArray_t srcArray, size_t srcOffset,
|
||||
size_t ByteCount);
|
||||
|
||||
@@ -1411,7 +1411,7 @@ hipError_t hipGraphAddMemsetNode(hipGraphNode_t* pGraphNode, hipGraph_t graph,
|
||||
|
||||
hipError_t hipDrvGraphAddMemsetNode(hipGraphNode_t* phGraphNode, hipGraph_t hGraph,
|
||||
const hipGraphNode_t* dependencies, size_t numDependencies,
|
||||
const HIP_MEMSET_NODE_PARAMS* memsetParams, hipCtx_t ctx) {
|
||||
const hipMemsetParams* memsetParams, hipCtx_t ctx) {
|
||||
HIP_INIT_API(hipDrvGraphAddMemsetNode, phGraphNode, hGraph, dependencies, numDependencies,
|
||||
memsetParams, ctx);
|
||||
if (phGraphNode == nullptr || hGraph == nullptr ||
|
||||
@@ -3393,7 +3393,7 @@ hipError_t hipDrvGraphExecMemcpyNodeSetParams(hipGraphExec_t hGraphExec, hipGrap
|
||||
}
|
||||
|
||||
hipError_t hipDrvGraphExecMemsetNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode,
|
||||
const HIP_MEMSET_NODE_PARAMS* memsetParams, hipCtx_t ctx) {
|
||||
const hipMemsetParams* memsetParams, hipCtx_t ctx) {
|
||||
HIP_INIT_API(hipDrvGraphExecMemsetNodeSetParams, hGraphExec, hNode, memsetParams);
|
||||
hip::GraphNode* n = reinterpret_cast<hip::GraphNode*>(hNode);
|
||||
|
||||
|
||||
@@ -2005,15 +2005,6 @@ class GraphMemsetNode : public GraphNode {
|
||||
std::memcpy(params, &memsetParams_, sizeof(hipMemsetParams));
|
||||
}
|
||||
|
||||
void GetParams(HIP_MEMSET_NODE_PARAMS* params) {
|
||||
params->dst = memsetParams_.dst;
|
||||
params->elementSize = memsetParams_.elementSize;
|
||||
params->height = memsetParams_.height;
|
||||
params->pitch = memsetParams_.pitch;
|
||||
params->value = memsetParams_.value;
|
||||
params->width = memsetParams_.width;
|
||||
}
|
||||
|
||||
hipError_t SetParamsInternal(const hipMemsetParams* params, bool isExec, size_t depth = 1) {
|
||||
hipError_t hip_error = hipSuccess;
|
||||
hip_error = ihipGraphMemsetParams_validate(params);
|
||||
@@ -2086,16 +2077,6 @@ class GraphMemsetNode : public GraphNode {
|
||||
return SetParamsInternal(params, isExec, depth);
|
||||
}
|
||||
|
||||
hipError_t SetParams(const HIP_MEMSET_NODE_PARAMS* params, bool isExec = false, size_t depth = 1) {
|
||||
hipMemsetParams pmemsetParams;
|
||||
pmemsetParams.dst = params->dst;
|
||||
pmemsetParams.elementSize = params->elementSize;
|
||||
pmemsetParams.height = params->height;
|
||||
pmemsetParams.pitch = params->pitch;
|
||||
pmemsetParams.value = params->value;
|
||||
pmemsetParams.width = params->width;
|
||||
return SetParamsInternal(&pmemsetParams, isExec, depth);
|
||||
}
|
||||
hipError_t SetParams(GraphNode* node) override {
|
||||
const GraphMemsetNode* memsetNode = static_cast<GraphMemsetNode const*>(node);
|
||||
return SetParams(&memsetNode->memsetParams_, false, memsetNode->depth_);
|
||||
|
||||
@@ -831,7 +831,7 @@ hipError_t hipImportExternalSemaphore(hipExternalSemaphore_t* extSem_out,
|
||||
}
|
||||
hipError_t hipDrvGraphAddMemsetNode(hipGraphNode_t* phGraphNode, hipGraph_t hGraph,
|
||||
const hipGraphNode_t* dependencies, size_t numDependencies,
|
||||
const HIP_MEMSET_NODE_PARAMS* memsetParams, hipCtx_t ctx) {
|
||||
const hipMemsetParams* memsetParams, hipCtx_t ctx) {
|
||||
return hip::GetHipDispatchTable()->hipDrvGraphAddMemsetNode_fn(phGraphNode, hGraph,
|
||||
dependencies, numDependencies, memsetParams, ctx);
|
||||
}
|
||||
@@ -1785,7 +1785,7 @@ hipError_t hipGetFuncBySymbol(hipFunction_t* functionPtr, const void* symbolPtr)
|
||||
return hip::GetHipDispatchTable()->hipGetFuncBySymbol_fn(functionPtr, symbolPtr);
|
||||
}
|
||||
hipError_t hipDrvGraphExecMemsetNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode,
|
||||
const HIP_MEMSET_NODE_PARAMS* memsetParams, hipCtx_t ctx) {
|
||||
const hipMemsetParams* memsetParams, hipCtx_t ctx) {
|
||||
return hip::GetHipDispatchTable()->hipDrvGraphExecMemsetNodeSetParams_fn(hGraphExec, hNode,
|
||||
memsetParams, ctx);
|
||||
}
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele