From 5f4b9a8f8f66c01cc48c98eb30ba58b03218bae8 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Mon, 25 Feb 2019 17:12:32 +0300 Subject: [PATCH] [HIPIFY][tests] caffe2 test fix [ROCm/hip commit: 3a8ef9c8a28337ceb75a09730c03071550b7c906] --- .../hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/hip/tests/hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu b/projects/hip/tests/hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu index bcbe440a15..7f29cfe25c 100644 --- a/projects/hip/tests/hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu +++ b/projects/hip/tests/hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu @@ -65,8 +65,7 @@ template class Operator : public OperatorBase { public: explicit Operator(const OperatorDef& operator_def, Workspace* ws) - : OperatorBase(operator_def, ws), context_(operator_def.device_option()) { - context_.SwitchToDevice(); + : OperatorBase(operator_def, ws) { } ~Operator() noexcept override {} };