From 1d3069053ac2f2cb221587f35c13c30ed9e3dc74 Mon Sep 17 00:00:00 2001 From: ton Date: Mon, 4 Sep 2023 19:56:08 +0700 Subject: [PATCH] add try --- Manifest.toml | 37 ++++++++++++++++++++++++++++- Project.toml | 2 ++ main_gpu_0.jl | 2 +- previousVersion/0.0.7/main_gpu_0.jl | 2 +- 4 files changed, 40 insertions(+), 3 deletions(-) diff --git a/Manifest.toml b/Manifest.toml index 46e5b8c..fcf1b3c 100644 --- a/Manifest.toml +++ b/Manifest.toml @@ -2,7 +2,7 @@ julia_version = "1.9.3" manifest_format = "2.0" -project_hash = "1d38b0278f78d536c218e3a421dfd88a68063099" +project_hash = "844808a02b2a30acdc69d975773e029da0ec81b8" [[deps.AbstractFFTs]] deps = ["LinearAlgebra"] @@ -161,6 +161,12 @@ version = "0.1.2" [deps.CompositionsBase.weakdeps] InverseFunctions = "3587e190-3f89-42d0-90ee-14403ec27112" +[[deps.CondaPkg]] +deps = ["JSON3", "Markdown", "MicroMamba", "Pidfile", "Pkg", "TOML"] +git-tree-sha1 = "741146cf2ced5859faae76a84b541aa9af1a78bb" +uuid = "992eb4ea-22a4-4c89-a5bb-47a3300528ab" +version = "0.2.18" + [[deps.ConstructionBase]] deps = ["LinearAlgebra"] git-tree-sha1 = "738fec4d684a9a6ee9598a8bfee305b26831f28c" @@ -491,6 +497,12 @@ git-tree-sha1 = "629afd7d10dbc6935ec59b32daeb33bc4460a42e" uuid = "128add7d-3638-4c79-886c-908ea0c25c34" version = "0.1.4" +[[deps.MicroMamba]] +deps = ["Pkg", "Scratch", "micromamba_jll"] +git-tree-sha1 = "011cab361eae7bcd7d278f0a7a00ff9c69000c51" +uuid = "0b3b1443-0f03-428d-bdfb-f27f9c1191ea" +version = "0.1.14" + [[deps.Missings]] deps = ["DataAPI"] git-tree-sha1 = "f66bdc5de519e8f8ae43bdc598782d35a25b1272" @@ -583,6 +595,12 @@ git-tree-sha1 = "4b2e829ee66d4218e0cef22c0a64ee37cf258c29" uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0" version = "2.7.1" +[[deps.Pidfile]] +deps = ["FileWatching", "Test"] +git-tree-sha1 = "2d8aaf8ee10df53d0dfb9b8ee44ae7c04ced2b03" +uuid = "fa939f87-e72e-5be4-a000-7fc836dbe307" +version = "1.3.0" + [[deps.Pkg]] deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"] uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" @@ -615,6 +633,12 @@ git-tree-sha1 = "80d919dee55b9c50e8d9e2da5eeafff3fe58b539" uuid = "33c8b6b6-d38a-422a-b730-caa89a2f386c" version = "0.1.4" +[[deps.PythonCall]] +deps = ["CondaPkg", "Dates", "Libdl", "MacroTools", "Markdown", "Pkg", "REPL", "Requires", "Serialization", "Tables", "UnsafePointers"] +git-tree-sha1 = "70af6bdbde63d7d0a4ea99f3e890ebdb55e9d464" +uuid = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d" +version = "0.9.14" + [[deps.QuadGK]] deps = ["DataStructures", "LinearAlgebra"] git-tree-sha1 = "6ec7ac8412e83d57e313393220879ede1740f9ee" @@ -862,6 +886,11 @@ git-tree-sha1 = "ea37e6066bf194ab78f4e747f5245261f17a7175" uuid = "d80eeb9a-aca5-4d75-85e5-170c8b632249" version = "0.1.2" +[[deps.UnsafePointers]] +git-tree-sha1 = "c81331b3b2e60a982be57c046ec91f599ede674a" +uuid = "e17b2a0c-0bdf-430a-bd0c-3a23cae4ff39" +version = "1.0.0" + [[deps.Zlib_jll]] deps = ["Libdl"] uuid = "83775a58-1f1d-513f-b197-d71354ab007a" @@ -900,6 +929,12 @@ deps = ["Artifacts", "Libdl"] uuid = "8e850b90-86db-534c-a0d3-1478176c7d93" version = "5.8.0+0" +[[deps.micromamba_jll]] +deps = ["Artifacts", "JLLWrappers", "LazyArtifacts", "Libdl"] +git-tree-sha1 = "66d07957bcf7e4930d933195aed484078dd8cbb5" +uuid = "f8abcde7-e9b7-5caa-b8af-a437887ae8e4" +version = "1.4.9+0" + [[deps.nghttp2_jll]] deps = ["Artifacts", "Libdl"] uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d" diff --git a/Project.toml b/Project.toml index fe5d5b9..4dfcab3 100644 --- a/Project.toml +++ b/Project.toml @@ -5,10 +5,12 @@ version = "0.1.0" [deps] CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" +CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab" Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c" GeneralUtils = "c6c72f09-b708-4ac8-ac7c-2084d70108fe" JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" +PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" diff --git a/main_gpu_0.jl b/main_gpu_0.jl index c148d57..dd900c4 100644 --- a/main_gpu_0.jl +++ b/main_gpu_0.jl @@ -5,7 +5,7 @@ # 2. delete CondaPkg.toml file in working folder # using Pkg; Pkg.activate("."); # pythonPkg = ["CondaPkg", "PythonCall"] -# for i in pythonPkg Pkg.rm(i) end +# for i in pythonPkg try Pkg.rm(i) catch end end # for i in pythonPkg Pkg.add(i) end # using CondaPkg, PythonCall # channels = ["anaconda", "conda-forge", "pytorch"] diff --git a/previousVersion/0.0.7/main_gpu_0.jl b/previousVersion/0.0.7/main_gpu_0.jl index c148d57..dd900c4 100644 --- a/previousVersion/0.0.7/main_gpu_0.jl +++ b/previousVersion/0.0.7/main_gpu_0.jl @@ -5,7 +5,7 @@ # 2. delete CondaPkg.toml file in working folder # using Pkg; Pkg.activate("."); # pythonPkg = ["CondaPkg", "PythonCall"] -# for i in pythonPkg Pkg.rm(i) end +# for i in pythonPkg try Pkg.rm(i) catch end end # for i in pythonPkg Pkg.add(i) end # using CondaPkg, PythonCall # channels = ["anaconda", "conda-forge", "pytorch"]