public class MemoryStrategies extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MemoryStrategies.MemoryMode
Memory modes for the host memory
(Credit to Marco from jcuda)
|
| Constructor and Description |
|---|
MemoryStrategies() |
| Modifier and Type | Method and Description |
|---|---|
static MemoryStrategies.MemoryMode |
getMode(int device)
Get the mode for the device
based on the device information
|
static MemoryStrategy |
getStrategy(int device)
Get the configured memory strategy for the device
|
static MemoryStrategy |
getStrategy(MemoryStrategies.MemoryMode mode)
Get the strategy for a given mode
|
public static MemoryStrategies.MemoryMode getMode(int device)
device - the device to get the mode forpublic static MemoryStrategy getStrategy(MemoryStrategies.MemoryMode mode)
mode - the mode to get the strategy forpublic static MemoryStrategy getStrategy(int device)
device - the device
to get the memory strategy forCopyright © 2015. All Rights Reserved.