iru@localhost $_ on Nostr: `nix develop` > Conda, venv, toolbox/distrobox ``` { description = “Instant ROCM ...
`nix develop` > Conda, venv, toolbox/distrobox
```
{
description = “Instant ROCM 5.7 environment”;
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
outputs = { self, nixpkgs }:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
};
pythonPackages = pkgs.python310Packages;
pyPkgs = with nixpkgs; [
(pkgs.python310.withPackages(ps: with ps; [
pip
torchWithRocm
]))
];
in
{
devShells.x86_64-linux = {
default = pkgs.mkShell {
buildInputs = [
pyPkgs
pkgs.radeontop
pkgs.nvtop-amd
pkgs.rocmPackages.clr
pkgs.rocmPackages.hipcc
pkgs.rocmPackages.miopen
pkgs.rocmPackages.rocblas
pkgs.rocmPackages.hipblas
pkgs.rocmPackages.rocminfo
pkgs.rocmPackages.rocm-smi
pkgs.rocmPackages.llvm.llvm
pkgs.rocmPackages.llvm.clang
pkgs.rocmPackages.llvm.bintools
pkgs.rocmPackages.llvm.clang-tools-extra
];
};
};
};
}
```
Published at
2024-08-24 00:26:47Event JSON
{
"id": "937b5e94330f83f42e066d2d562cc78afcb61172acf7766af3c4a8cad15b7789",
"pubkey": "9eeca894b2e8830e05ec86f4d119de411a2dd3abcb65525db69c486f4afe5882",
"created_at": 1724459207,
"kind": 1,
"tags": [
[
"client",
"Nostur",
"31990:9be0be0fc079548233231614e4e1efc9f28b0db398011efeecf05fe570e5dd33:1685868693432"
]
],
"content": "`nix develop` \u003e Conda, venv, toolbox/distrobox\n\n```\n{\n description = “Instant ROCM 5.7 environment”;\n\n inputs.nixpkgs.url = \"github:nixos/nixpkgs/nixos-23.11\";\n\n outputs = { self, nixpkgs }:\n let\n pkgs = import nixpkgs {\n system = \"x86_64-linux\";\n };\n pythonPackages = pkgs.python310Packages;\n pyPkgs = with nixpkgs; [\n (pkgs.python310.withPackages(ps: with ps; [ \n pip\n torchWithRocm\n ]))\n ];\n in\n {\n devShells.x86_64-linux = {\n default = pkgs.mkShell {\n buildInputs = [ \n pyPkgs\n pkgs.radeontop\n pkgs.nvtop-amd\n pkgs.rocmPackages.clr\n pkgs.rocmPackages.hipcc\n pkgs.rocmPackages.miopen\n pkgs.rocmPackages.rocblas\n pkgs.rocmPackages.hipblas\n pkgs.rocmPackages.rocminfo\n pkgs.rocmPackages.rocm-smi\n pkgs.rocmPackages.llvm.llvm\n pkgs.rocmPackages.llvm.clang\n pkgs.rocmPackages.llvm.bintools\n pkgs.rocmPackages.llvm.clang-tools-extra\n ];\n };\n };\n };\n}\n```",
"sig": "c1c9da178b4b0561d646e0efc7f4918a7f2ced95b3488e481397dc6a7bbe85176c76c77adec1ecb40039f0345638baf37d42f06c3e5b8dd3ee95f83c979ae991"
}