@@ -51,11 +51,11 @@ class CudaProfileInitializeOp : public OperatorBase {
5151 }
5252 }
5353
54- ~CudaProfileInitializeOp () {
54+ ~CudaProfileInitializeOp () override {
5555 unlink (config_.c_str ());
5656 }
5757
58- virtual bool Run (int /* unused */ /* stream_id*/ = 0 ) {
58+ bool Run (int /* unused */ /* stream_id*/ = 0 ) override {
5959 // If this fails, check the contents of "output" for hints.
6060 CUDA_CHECK (
6161 cudaProfilerInitialize (config_.c_str (), output_.c_str (), cudaCSV));
@@ -72,7 +72,7 @@ class CudaProfileStartOp : public OperatorBase {
7272 CudaProfileStartOp (const OperatorDef& operator_def, Workspace* ws)
7373 : OperatorBase(operator_def, ws) {}
7474
75- virtual bool Run (int /* unused */ /* stream_id*/ = 0 ) {
75+ bool Run (int /* unused */ /* stream_id*/ = 0 ) override {
7676 CUDA_ENFORCE (cudaProfilerStart ());
7777 return true ;
7878 }
@@ -83,7 +83,7 @@ class CudaProfileStopOp : public OperatorBase {
8383 CudaProfileStopOp (const OperatorDef& operator_def, Workspace* ws)
8484 : OperatorBase(operator_def, ws) {}
8585
86- virtual bool Run (int /* unused */ /* stream_id*/ = 0 ) {
86+ bool Run (int /* unused */ /* stream_id*/ = 0 ) override {
8787 CUDA_ENFORCE (cudaProfilerStop ());
8888 return true ;
8989 }
0 commit comments