pinokiod 3.220.0 → 3.223.0
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.
- package/kernel/bin/conda.js +1 -0
- package/kernel/bin/cuda.js +2 -2
- package/kernel/bin/index.js +9 -0
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
package/kernel/bin/cuda.js
CHANGED
|
@@ -11,7 +11,7 @@ class Cuda {
|
|
|
11
11
|
await this.kernel.bin.exec({
|
|
12
12
|
message: [
|
|
13
13
|
"conda clean -y --all",
|
|
14
|
-
"conda install -y
|
|
14
|
+
"conda install -y nvidia/label/cuda-12.8.1::cuda"
|
|
15
15
|
]
|
|
16
16
|
}, ondata)
|
|
17
17
|
} else {
|
|
@@ -24,7 +24,7 @@ class Cuda {
|
|
|
24
24
|
await this.kernel.bin.exec({
|
|
25
25
|
message: [
|
|
26
26
|
"conda clean -y --all",
|
|
27
|
-
"conda install -y
|
|
27
|
+
"conda install -y nvidia/label/cuda-12.8.1::cuda"
|
|
28
28
|
]
|
|
29
29
|
}, ondata)
|
|
30
30
|
if (this.kernel.platform === "linux") {
|
package/kernel/bin/index.js
CHANGED
|
@@ -815,6 +815,7 @@ class Bin {
|
|
|
815
815
|
// await this.init()
|
|
816
816
|
}
|
|
817
817
|
async check_installed(r, dependencies) {
|
|
818
|
+
console.log("check installed", r)
|
|
818
819
|
if (Array.isArray(r.name)) {
|
|
819
820
|
for(let name of r.name) {
|
|
820
821
|
let d = Date.now()
|
|
@@ -847,6 +848,7 @@ class Bin {
|
|
|
847
848
|
let filepath = path.resolve(__dirname, "..", "kernel", "bin", name + ".js")
|
|
848
849
|
let mod = this.mod[name]
|
|
849
850
|
let installed = false
|
|
851
|
+
/*
|
|
850
852
|
if (!this.cached_mod_installed) {
|
|
851
853
|
this.cached_mod_installed = {}
|
|
852
854
|
}
|
|
@@ -861,6 +863,13 @@ class Bin {
|
|
|
861
863
|
}
|
|
862
864
|
return installed
|
|
863
865
|
}
|
|
866
|
+
*/
|
|
867
|
+
|
|
868
|
+
if (mod.installed) {
|
|
869
|
+
installed = await mod.installed()
|
|
870
|
+
}
|
|
871
|
+
console.log("_installed", { name, type, dependencies, installed })
|
|
872
|
+
return installed
|
|
864
873
|
}
|
|
865
874
|
}
|
|
866
875
|
preset(mode) {
|