Poplar and PopLibs
poplar::Type Class Reference

Class representing device data types. More...

#include <Type.hpp>

Public Member Functions

StringRef toString () const
 Get a string representation on a type. More...
 

Detailed Description

Class representing device data types.

The following types are not supported on the IPU:

  • LONG
  • UNSIGNED_LONG
  • DOUBLE

For other types, the sizes on the IPU are:

  • BOOL: 1 byte
  • CHAR: 1 byte (signed)
  • SIGNED_CHAR: 1 byte
  • UNSIGNED_CHAR: 1 byte
  • SHORT: 2 bytes
  • SIGNED_SHORT: 2 bytes
  • UNSIGNED_SHORT: 2 bytes
  • INT: 4 bytes
  • SIGNED_INT: 4 bytes
  • SIGNED: 4 bytes
  • UNSIGNED_INT: 4 bytes
  • UNSIGNED: 4 bytes
  • LONGLONG: 8 bytes
  • UNSIGNED_LONGLONG: 8 bytes
  • HALF: 2 bytes
  • FLOAT: 4 bytes

Member Function Documentation

◆ toString()

StringRef poplar::Type::toString ( ) const

Get a string representation on a type.

Returns
A string representation of the type.

The documentation for this class was generated from the following file: