Skip to content

Commit 0e9dc7c

Browse files
committed
linglong/nova-studio: remove opencl config and move it to readme
1 parent 4ba28b4 commit 0e9dc7c

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

linglong/nova-studio/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Linglong Nova Studio
2+
3+
This is a configuration for [Linglong Nova Studio (玲珑星核)](https://www.firstarpc.com/).
4+
5+
## Configuration
6+
7+
import `<nixos-hardware/linglong/nova-studio>` (using configurations), or add `nixos-hardware.nixosModules.linglong-nova-studio` in modules (using Flakes).
8+
9+
This configuration will force to use Linux kernel that >= 6.14, otherwise it will be updated to the latest version. This part follows [Framework Desktop](../../framework/desktop/amd-ai-max-300-series), which is also a desktop computer using Ryzen AI Max 300 series processor.
10+
11+
## OpenCL and ROCm support
12+
13+
To setup OpenCL and ROCm environment, please add the following configuration:
14+
15+
```
16+
# Tell packages that supports ROCm to enable the related supports.
17+
nixpkgs.config.rocmSupport = true;
18+
19+
# Install ROCm and enable
20+
hardware.amdgpu.opencl.enable = true;
21+
22+
# These tools can show the info related to ROCm and OpenCL.
23+
environment.systemPackages = with pkgs; [
24+
rocmPackages.rocminfo
25+
clinfo
26+
];
27+
```
28+
29+
After switching, to check whether the environment has been correctly setup, please run
30+
31+
```
32+
clinfo
33+
```
34+
35+
and
36+
37+
```
38+
rocminfo
39+
```

linglong/nova-studio/default.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,4 @@
2222
hardware.enableRedistributableFirmware = lib.mkDefault true;
2323
hardware.graphics.enable = lib.mkDefault true;
2424
hardware.graphics.enable32Bit = lib.mkDefault true;
25-
26-
hardware.amdgpu.opencl.enable = lib.mkDefault true;
2725
}

0 commit comments

Comments
 (0)