API Enumerations

API Enumerations#

Rocprofiler SDK Developer API: API Enumerations
Rocprofiler SDK Developer API 0.5.0
ROCm Profiling API and tools
API Enumerations

Enumerations used by collective communication calls. More...

Enumerations

enum  ncclRedOp_dummy_t { ncclNumOps_dummy = 5 }
 Dummy reduction enumeration. More...
 
enum  ncclRedOp_t {
  ncclSum = 0 ,
  ncclProd = 1 ,
  ncclMax = 2 ,
  ncclMin = 3 ,
  ncclAvg = 4 ,
  ncclNumOps = 5 ,
  ncclMaxRedOp
}
 Reduction operation selector. More...
 
enum  ncclDataType_t {
  ncclInt8 = 0 ,
  ncclChar = 0 ,
  ncclUint8 = 1 ,
  ncclInt32 = 2 ,
  ncclInt = 2 ,
  ncclUint32 = 3 ,
  ncclInt64 = 4 ,
  ncclUint64 = 5 ,
  ncclFloat16 = 6 ,
  ncclHalf = 6 ,
  ncclFloat32 = 7 ,
  ncclFloat = 7 ,
  ncclFloat64 = 8 ,
  ncclDouble = 8 ,
  ncclBfloat16 = 9 ,
  ncclFp8E4M3 = 10 ,
  ncclFp8E5M2 = 11 ,
  ncclNumTypes = 12
}
 Data types. More...
 

Detailed Description

Enumerations used by collective communication calls.

Enumeration Type Documentation

◆ ncclDataType_t

Data types.

Enumeration of the various supported datatype

Enumerator
ncclInt8 
ncclChar 
ncclUint8 
ncclInt32 
ncclInt 
ncclUint32 
ncclInt64 
ncclUint64 
ncclFloat16 
ncclHalf 
ncclFloat32 
ncclFloat 
ncclFloat64 
ncclDouble 
ncclBfloat16 
ncclFp8E4M3 
ncclFp8E5M2 
ncclNumTypes 

Definition at line 430 of file rccl.h.

431{
432 ncclInt8 = 0,
433 ncclChar = 0,
434 ncclUint8 = 1,
435 ncclInt32 = 2,
436 ncclInt = 2,
437 ncclUint32 = 3,
438 ncclInt64 = 4,
439 ncclUint64 = 5,
440 ncclFloat16 = 6,
441 ncclHalf = 6,
442 ncclFloat32 = 7,
443 ncclFloat = 7,
444 ncclFloat64 = 8,
445 ncclDouble = 8,
446 ncclBfloat16 = 9,
447#if defined(RCCL_FLOAT8)
448 ncclFp8E4M3 = 10,
449 ncclFp8E5M2 = 11,
450 ncclNumTypes = 12
ncclDataType_t
Data types.
Definition rccl.h:431
@ ncclFloat64
Definition rccl.h:444
@ ncclHalf
Definition rccl.h:441
@ ncclInt32
Definition rccl.h:435
@ ncclFp8E5M2
Definition rccl.h:449
@ ncclFp8E4M3
Definition rccl.h:448
@ ncclNumTypes
Definition rccl.h:450
@ ncclUint32
Definition rccl.h:437
@ ncclInt8
Definition rccl.h:432
@ ncclDouble
Definition rccl.h:445
@ ncclFloat32
Definition rccl.h:442
@ ncclBfloat16
Definition rccl.h:446
@ ncclFloat
Definition rccl.h:443
@ ncclChar
Definition rccl.h:433
@ ncclInt
Definition rccl.h:436
@ ncclUint64
Definition rccl.h:439
@ ncclUint8
Definition rccl.h:434
@ ncclInt64
Definition rccl.h:438
@ ncclFloat16
Definition rccl.h:440

◆ ncclRedOp_dummy_t

Dummy reduction enumeration.

Dummy reduction enumeration used to determine value for ncclMaxRedOp

Enumerator
ncclNumOps_dummy 

Definition at line 401 of file rccl.h.

402{
ncclRedOp_dummy_t
Dummy reduction enumeration.
Definition rccl.h:402
@ ncclNumOps_dummy
Definition rccl.h:403

◆ ncclRedOp_t

Reduction operation selector.

Enumeration used to specify the various reduction operations ncclNumOps is the number of built-in ncclRedOp_t values and serves as the least possible value for dynamic ncclRedOp_t values constructed by ncclRedOpCreate functions.

ncclMaxRedOp is the largest valid value for ncclRedOp_t and is defined to be the largest signed value (since compilers are permitted to use signed enums) that won't grow sizeof(ncclRedOp_t) when compared to previous RCCL versions to maintain ABI compatibility.

Enumerator
ncclSum 

Sum

ncclProd 

Product

ncclMax 

Max

ncclMin 

Min

ncclAvg 

Average

ncclNumOps 

Number of built-in reduction ops

ncclMaxRedOp 

Largest value for ncclRedOp_t

Definition at line 416 of file rccl.h.

417{
418 ncclSum = 0, /*!< Sum */
419 ncclProd = 1, /*!< Product */
420 ncclMax = 2, /*!< Max */
421 ncclMin = 3, /*!< Min */
422 ncclAvg = 4, /*!< Average */
423 ncclNumOps = 5, /*!< Number of built-in reduction ops */
425 0x7fffffff >> (32 - 8 * sizeof(ncclRedOp_dummy_t)) /*!< Largest value for ncclRedOp_t */
ncclRedOp_t
Reduction operation selector.
Definition rccl.h:417
@ ncclMin
Definition rccl.h:421
@ ncclNumOps
Definition rccl.h:423
@ ncclSum
Definition rccl.h:418
@ ncclMaxRedOp
Definition rccl.h:424
@ ncclProd
Definition rccl.h:419
@ ncclMax
Definition rccl.h:420
@ ncclAvg
Definition rccl.h:422