org.encog.engine.opencl
Class EncogCLPlatform

java.lang.Object
  extended by org.encog.engine.opencl.EncogCLItem
      extended by org.encog.engine.opencl.EncogCLPlatform

public class EncogCLPlatform
extends EncogCLItem

An Encog CL platform.


Constructor Summary
EncogCLPlatform(org.jocl.cl_platform_id platform)
          Construct an OpenCL platform.
 
Method Summary
 org.jocl.cl_context getContext()
           
 List<EncogCLDevice> getDevices()
           
 org.jocl.cl_platform_id getPlatform()
           
 String getPlatformString(int param)
          Get a config string from the platform.
 
Methods inherited from class org.encog.engine.opencl.EncogCLItem
getName, getVender, isEnabled, setEnabled, setName, setVender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncogCLPlatform

public EncogCLPlatform(org.jocl.cl_platform_id platform)
Construct an OpenCL platform.

Parameters:
platform - The OpenCL platform.
Method Detail

getContext

public org.jocl.cl_context getContext()
Returns:
The context for this platform.

getDevices

public List<EncogCLDevice> getDevices()
Returns:
All devices on this platform.

getPlatform

public org.jocl.cl_platform_id getPlatform()
Returns:
The OpenCL platform.

getPlatformString

public String getPlatformString(int param)
Get a config string from the platform.

Parameters:
param - The param to get.
Returns:
The config string.


Copyright © 2011. All Rights Reserved.