Skip to content
Snippets Groups Projects
Commit 2e0c366a authored by Akash Kothari's avatar Akash Kothari
Browse files

Add generated function for CUDNN in DFGraph header

parent ae436389
No related branches found
No related tags found
No related merge requests found
...@@ -401,6 +401,14 @@ public: ...@@ -401,6 +401,14 @@ public:
GenFuncs.GPUGenFunc = F; GenFuncs.GPUGenFunc = F;
GenFuncInfo.gpu_hasCPUFunc = isCPUFunc; GenFuncInfo.gpu_hasCPUFunc = isCPUFunc;
break; break;
case hpvm::CUDNN_TARGET:
if (GenFuncs.GPUGenFunc != NULL) {
DEBUG(errs() << "Warning: Second generated GPU function for node "
<< FuncPointer->getName() << "\n");
}
GenFuncs.CUDNNGenFunc = F;
GenFuncInfo.cudnn_hasCPUFunc = isCPUFunc;
break;
case hpvm::CPU_OR_GPU_TARGET: case hpvm::CPU_OR_GPU_TARGET:
assert(false && "A node function should be set with a tag specifying its \ assert(false && "A node function should be set with a tag specifying its \
type, not the node hint itself\n"); type, not the node hint itself\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment