You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

profiling_parallel.proto 1.4 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * Copyright 2021 Huawei Technologies Co., Ltd
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // The anf_ir.proto is `proto2` syntax, so this file use `proto2`, else will occur a compile error.
  17. syntax = "proto2";
  18. package mindspore.irpb;
  19. option cc_enable_arenas = true;
  20. import "anf_ir.proto";
  21. message ProfilingParallel {
  22. optional string version = 1;
  23. optional Config config = 2;
  24. optional GraphProto graph = 3;
  25. }
  26. message Config {
  27. optional uint32 rank_id = 1;
  28. // The stage of current device
  29. optional uint32 stage_id = 2;
  30. // optional: stand_alone/data_parallel/semi_auto_parallel/auto_parallel/hybrid_parallel
  31. optional string parallel_type = 3;
  32. // The global stages and devices info, ex. 2 stages: [[0,1,2,3], [4,5,6,7]]
  33. // If the training mode is not pipeline parallel training, [[0,1,2,3,4,5,6,7,8]]
  34. repeated TensorShapeProto stage_devices = 4;
  35. }