pinokiod 1.2.25 → 1.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/index.js +11 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -297,9 +297,6 @@ class Server {
297
297
  args: "-c conda-forge"
298
298
  }, {
299
299
  name: "py"
300
- }, {
301
- gpu: "nvidia",
302
- name: "cuda"
303
300
  }]
304
301
  let platform = os.platform()
305
302
  if (platform === "win32") {
@@ -310,6 +307,11 @@ class Server {
310
307
  name: "vs"
311
308
  })
312
309
  }
310
+ if (this.kernel.gpu === "nvidia") {
311
+ requirements.push({
312
+ name: "cuda"
313
+ })
314
+ }
313
315
  let requirements_pending = !this.kernel.bin.installed_initialized
314
316
 
315
317
 
@@ -554,9 +556,6 @@ class Server {
554
556
  args: "-c conda-forge"
555
557
  }, {
556
558
  name: "py"
557
- }, {
558
- gpu: "nvidia",
559
- name: "cuda"
560
559
  }]
561
560
  let platform = os.platform()
562
561
  if (platform === "win32") {
@@ -569,6 +568,11 @@ class Server {
569
568
  name: "brew"
570
569
  })
571
570
  }
571
+ if (this.kernel.gpu === "nvidia") {
572
+ requirements.push({
573
+ name: "cuda"
574
+ })
575
+ }
572
576
  // if (platform === "linux") {
573
577
  // requirements.push({
574
578
  // name: "brew"
@@ -1426,6 +1430,7 @@ class Server {
1426
1430
  // all platforms
1427
1431
  relevant.gpu = true
1428
1432
  }
1433
+ console.log("# releavant", relevant)
1429
1434
  return relevant.platform && relevant.arch && relevant.gpu
1430
1435
  }
1431
1436
  async _installed(name, type) {