diff --git a/mindspore/ccsrc/profiler/device/gpu/gpu_profiling.h b/mindspore/ccsrc/profiler/device/gpu/gpu_profiling.h index c92f8306142..e7abf11b6af 100644 --- a/mindspore/ccsrc/profiler/device/gpu/gpu_profiling.h +++ b/mindspore/ccsrc/profiler/device/gpu/gpu_profiling.h @@ -108,7 +108,7 @@ class ProfilingOp { std::string op_name_; }; -class GPUProfiler : public Profiler { +class MS_CORE_API GPUProfiler : public Profiler { public: static std::shared_ptr &GetInstance(); GPUProfiler() = default;