- java.lang.Object
-
- java.security.Permission
-
- java.security.BasicPermission
-
- com.ibm.cuda.CudaPermission
-
- All Implemented Interfaces:
Serializable
,Guard
public final class CudaPermission extends BasicPermission
This class defines CUDA permissions as described in the following table.CUDA Permissions Permission Name Allowed Action configureDeviceCache Configuring the cache of a device. See CudaDevice.setCacheConfig(CacheConfig)
.configureDeviceSharedMemory Configuring the shared memory of a device. See CudaDevice.setSharedMemConfig(SharedMemConfig)
.loadModule Loading a GPU code module onto a device. See CudaModule
.peerAccess.disable Disabling peer access from one device to another. See CudaDevice.disablePeerAccess(CudaDevice)
.peerAccess.enable Enabling peer access from one device to another. See CudaDevice.enablePeerAccess(CudaDevice)
.setDeviceLimit Setting a device limit. See CudaDevice.setLimit(Limit, long)
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CudaPermission(String name)
Create a representation of the named permissions.CudaPermission(String name, String actions)
Create a representation of the named permissions.
-
Method Summary
-
Methods declared in class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
-
Methods declared in class java.security.Permission
checkGuard, getName, toString
-
-
-
-
Constructor Detail
-
CudaPermission
public CudaPermission(String name)
Create a representation of the named permissions.- Parameters:
name
- name of the permission
-
CudaPermission
public CudaPermission(String name, String actions)
Create a representation of the named permissions.- Parameters:
name
- name of the permissionactions
- not used, must be null or an empty string- Throws:
IllegalArgumentException
- if actions is not null or an empty string
-
-