diff --git a/llvm/test/VISC/DNN_Benchmarks/benchmarks/fc_mnist_3/src/fc_mnist_3.cpp b/llvm/test/VISC/DNN_Benchmarks/benchmarks/fc_mnist_3/src/fc_mnist_3.cpp index 20649cb47d14628a70ad285e39a576af7e7020a1..0de59f414699c6173149c1df16385332a12e9c29 100644 --- a/llvm/test/VISC/DNN_Benchmarks/benchmarks/fc_mnist_3/src/fc_mnist_3.cpp +++ b/llvm/test/VISC/DNN_Benchmarks/benchmarks/fc_mnist_3/src/fc_mnist_3.cpp @@ -296,7 +296,7 @@ int main() { __visc__wait(dfg); void *r = static_cast<RootIn*>(dfg)->r.tensor; - hpvm_request_tensor(r); + hpvm_request_tensor(r, visc::CPU_TARGET); __visc__cleanup(); return 0; diff --git a/llvm/test/VISC/DNN_Benchmarks/benchmarks/fcl/src/fcl.cpp b/llvm/test/VISC/DNN_Benchmarks/benchmarks/fcl/src/fcl.cpp index 574ff8bc457c81302edc400a777867a44080034e..cebf98da3bdee9bd8a7497cb8655188872f39219 100644 --- a/llvm/test/VISC/DNN_Benchmarks/benchmarks/fcl/src/fcl.cpp +++ b/llvm/test/VISC/DNN_Benchmarks/benchmarks/fcl/src/fcl.cpp @@ -93,7 +93,7 @@ int main() { __visc__wait(dfg); void *r = static_cast<RootIn*>(dfg)->r.tensor; - hpvm_request_tensor(r); + hpvm_request_tensor(r, visc::CPU_TARGET); __visc__cleanup(); return 0; diff --git a/llvm/test/VISC/DNN_Benchmarks/common/include/visc.h b/llvm/test/VISC/DNN_Benchmarks/common/include/visc.h index f45534fa40c292236beec95a4408eace3a283df7..bf8e362bf933dd32b86d9893517e36e1438d0311 100644 --- a/llvm/test/VISC/DNN_Benchmarks/common/include/visc.h +++ b/llvm/test/VISC/DNN_Benchmarks/common/include/visc.h @@ -7,7 +7,7 @@ ***************************************************************************/ #ifndef DEVICE -#define DEVICE GPU_TARGET +#define DEVICE CUDNN_TARGET #endif #include "llvm/SupportVISC/VISCHint.h" @@ -107,7 +107,11 @@ long get_local_size(int); void llvm_visc_track_mem(void*, size_t); void llvm_visc_untrack_mem(void*); void llvm_visc_request_mem(void*, size_t); -void hpvm_request_tensor(void*); +#ifdef __cplusplus +void hpvm_request_tensor(void*, visc::Target); +#else +void hpvm_request_tensor(void*, enum Target); +#endif #ifdef __cplusplus } #endif