Packages

  • package root
    Definition Classes
    root
  • object Example

    Simple Scala example to show how run a kernel with assert*() and PRINT*() macros and test them.

    Simple Scala example to show how run a kernel with assert*() and PRINT*() macros and test them.

    Piece of assertOpenCL

    Definition Classes
    root
    Version

    September 19, 2018

o

Example

object Example

Simple Scala example to show how run a kernel with assert*() and PRINT*() macros and test them.

Piece of assertOpenCL

Version

September 19, 2018

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Example
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. val FLOAT_FIELD_SIZE: Int

    Number of bytes for the float type.

  2. val INT_FIELD_SIZE: Int

    Number of bytes for the int type.

  3. val LONG_FIELD_SIZE: Int

    Number of bytes for the long type.

  4. def fileToString(filename: String): String

    Read the file and return its content to a string.

    Read the file and return its content to a string. If failed then throw an exception.

  5. def getDeviceId(platformI: Int, deviceI: Int): cl_device_id

    Return the given id device of the given platform OpenCL, or exit if doesn't exists.

  6. def getDeviceInfoString(deviceId: cl_device_id, paramName: Int): String

    Return a string corresponding to device info parameter.

  7. def main(args: Array[String]): Unit

    Get the optional parameter --device platform:device and run the kernel ../kernel/example.cl .

  8. def runExample(nbWorkGroup: Int, nbWorkItemsByWorkGroup: Int, deviceId: cl_device_id, debug: Boolean): Unit

    Run the kernel ../kernel/example.cl.

    Run the kernel ../kernel/example.cl.

    If debug then run the kernel in debug mode, else run the kernel with the macro NDEBUG defined.

  9. def uint32(n: Int): Long

    Return in a Long the value of n considered as an unsigned integer on 32 bits.

  10. def uint64(n: Long): BigInt

    Return in a BigInt the value of n considered as an unsigned integer on 64 bits.