mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 17:38:41 +08:00
linglong/nova-studio: remove opencl config and move it to readme
This commit is contained in:
39
linglong/nova-studio/README.md
Normal file
39
linglong/nova-studio/README.md
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
# Linglong Nova Studio
|
||||||
|
|
||||||
|
This is a configuration for [Linglong Nova Studio (玲珑星核)](https://www.firstarpc.com/).
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
import `<nixos-hardware/linglong/nova-studio>` (using configurations), or add `nixos-hardware.nixosModules.linglong-nova-studio` in modules (using Flakes).
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
## OpenCL and ROCm support
|
||||||
|
|
||||||
|
To setup OpenCL and ROCm environment, please add the following configuration:
|
||||||
|
|
||||||
|
```
|
||||||
|
# Tell packages that supports ROCm to enable the related supports.
|
||||||
|
nixpkgs.config.rocmSupport = true;
|
||||||
|
|
||||||
|
# Install ROCm and enable
|
||||||
|
hardware.amdgpu.opencl.enable = true;
|
||||||
|
|
||||||
|
# These tools can show the info related to ROCm and OpenCL.
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
rocmPackages.rocminfo
|
||||||
|
clinfo
|
||||||
|
];
|
||||||
|
```
|
||||||
|
|
||||||
|
After switching, to check whether the environment has been correctly setup, please run
|
||||||
|
|
||||||
|
```
|
||||||
|
clinfo
|
||||||
|
```
|
||||||
|
|
||||||
|
and
|
||||||
|
|
||||||
|
```
|
||||||
|
rocminfo
|
||||||
|
```
|
||||||
@@ -22,6 +22,4 @@
|
|||||||
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
||||||
hardware.graphics.enable = lib.mkDefault true;
|
hardware.graphics.enable = lib.mkDefault true;
|
||||||
hardware.graphics.enable32Bit = lib.mkDefault true;
|
hardware.graphics.enable32Bit = lib.mkDefault true;
|
||||||
|
|
||||||
hardware.amdgpu.opencl.enable = lib.mkDefault true;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user