how to config when you have multiple GPUs ? #281
-
|
hello everyone, I have two GPU's. in the json for openCL I have: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
"producerOpenCL": [
{
"platformIndex": 0,
"deviceType": -1,
"deviceIndex": 0,
...
},
{
"platformIndex": 0,
"deviceType": -1,
"deviceIndex": 1,
...
}
]Each entry runs as its own independent producer, so both GPUs work in parallel. The likely reason your earlier attempts didn't work: To find the correct indices for your system: run
|
Beta Was this translation helpful? Give feedback.
-
|
The Step 1 — find your platform/device indices Run the tool with Step 2 — define one key producer per GPU Each Step 3 — add a second entry to {
"command": "Find",
"finder": {
"keyProducerJavaRandom": [
{
"keyProducerId": "gpu0_keys",
"randomAlgorithm": "SECURE_RANDOM",
"customSeed": 0,
"privateKeyMaxNumBits": 256
},
{
"keyProducerId": "gpu1_keys",
"randomAlgorithm": "SECURE_RANDOM",
"customSeed": 0,
"privateKeyMaxNumBits": 256
}
],
"consumerJava": {
"lmdbConfigurationReadOnly": {
"lmdbDirectory": "lmdb",
"useProxyOptimal": true,
"logStatsOnInit": true,
"logStatsOnClose": false,
"addressLookupBackend": "LMDB_ONLY",
"disableAddressLookup": false
},
"printStatisticsEveryNSeconds": 10,
"threads": 8,
"queuePollTimeoutMillis": 50,
"queueSize": 8,
"awaitQueueEmptySeconds": 60,
"runtimePublicKeyCalculationCheck": false,
"enableVanity": false,
"vanityPattern": "1[Ee][Mm][Ii][Ll].*"
},
"awaitTerminateSeconds": 31536000000,
"producerJava": [],
"producerJavaSecretsFiles": [],
"producerOpenCL": [
{
"platformIndex": 0,
"deviceType": -1,
"deviceIndex": 0,
"maxResultReaderThreads": 4,
"keyProducerId": "gpu0_keys",
"batchSizeInBits": 18,
"keysPerWorkItem": 16,
"batchUsePrivateKeyIncrement": true,
"logSecretBase": false,
"runOnce": false,
"shutdownTimeoutSeconds": 300,
"enableGpuFilter": true,
"transferAll": false,
"useSafeGcdInverse": true
},
{
"platformIndex": 0,
"deviceType": -1,
"deviceIndex": 1,
"maxResultReaderThreads": 4,
"keyProducerId": "gpu1_keys",
"batchSizeInBits": 18,
"keysPerWorkItem": 16,
"batchUsePrivateKeyIncrement": true,
"logSecretBase": false,
"runOnce": false,
"shutdownTimeoutSeconds": 300,
"enableGpuFilter": true,
"transferAll": false,
"useSafeGcdInverse": true
}
]
}
}Key points:
|
Beta Was this translation helpful? Give feedback.
producerOpenCLis a JSON array. Eeach element is one device's own config (you can see this in your own snippet, since it opens with[). To use both GPUs, don't edit the existing entry... add a second object alongside it:Each entry runs as its own independent producer, so both GPUs work in parallel.
The likely reason your earlier attempts didn't work:
deviceIndexis scoped per platform, not global across all GPUs in the system. If both your GPUs are the same vendor (e.g. two NVIDIA cards), they're alm…