diff --git a/.vscode/settings.json b/.vscode/settings.json index 01390a2..f03b3e7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,7 +8,66 @@ "xlocmes": "cpp", "xlocmon": "cpp", "xlocnum": "cpp", - "xloctime": "cpp" + "xloctime": "cpp", + "algorithm": "cpp", + "atomic": "cpp", + "cctype": "cpp", + "chrono": "cpp", + "cmath": "cpp", + "codecvt": "cpp", + "cstddef": "cpp", + "cstdint": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "ctime": "cpp", + "cwchar": "cpp", + "deque": "cpp", + "exception": "cpp", + "fstream": "cpp", + "initializer_list": "cpp", + "iomanip": "cpp", + "ios": "cpp", + "iosfwd": "cpp", + "iostream": "cpp", + "iterator": "cpp", + "limits": "cpp", + "list": "cpp", + "locale": "cpp", + "map": "cpp", + "mutex": "cpp", + "new": "cpp", + "ostream": "cpp", + "queue": "cpp", + "random": "cpp", + "ratio": "cpp", + "set": "cpp", + "sstream": "cpp", + "stack": "cpp", + "stdexcept": "cpp", + "streambuf": "cpp", + "string": "cpp", + "system_error": "cpp", + "xthread": "cpp", + "thread": "cpp", + "tuple": "cpp", + "typeinfo": "cpp", + "unordered_map": "cpp", + "unordered_set": "cpp", + "utility": "cpp", + "vector": "cpp", + "xfacet": "cpp", + "xhash": "cpp", + "xiosbase": "cpp", + "xlocbuf": "cpp", + "xlocinfo": "cpp", + "xmemory": "cpp", + "xmemory0": "cpp", + "xstddef": "cpp", + "xstring": "cpp", + "xtr1common": "cpp", + "xtree": "cpp", + "xutility": "cpp" }, "python.linting.pylintEnabled": true, "python.linting.enabled": true diff --git a/package-lock.json b/package-lock.json index 21d1d4b..dda2cee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nim-pools-hub-miner", - "version": "0.1.3", + "version": "0.1.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/main/index.js b/src/main/index.js index 7ef05f4..1dd6ce3 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -157,7 +157,11 @@ const startMining = async (gpu = false) => { const priority = Object.entries(constants.priority)[ store.state.settings.cpuPriority ]; - setPriority(priority[1]); + try { + setPriority(priority[1]); + } catch (error) { + console.error("Set CPU Priority Failed: ", error); + } const deviceName = store.state.settings.deviceName; const maxThreads = store.state.settings.cpuThreads; @@ -219,7 +223,7 @@ const startMining = async (gpu = false) => { }); } else { const vendor = (await graphics()).controllers[0].vendor; - const type = vendor.includes("Advanced Micro Devices") ? "opencl" : "cuda"; + const type = vendor.includes("NVIDIA") ? "cuda" : "opencl"; console.log(`GPU Type: ${type}`); const argv = {