Instructions for running Debian sid with systemd on WSL2
- Make sure you're running Windows 10 Build 19041+ (run
ver
) - Enable the Windows Subsystem for Linux (reboot if needed):
Instructions for running Debian sid with systemd on WSL2
ver
)First, execute these commands in Windows pwsh/cmd to ensure the proper features are turned on.
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Then, update the [WSL 2 Linux kernel].
module penjumlahan_interface | |
use iso_c_binding, only: c_double | |
use penjumlahan_module, only: penjumlahan | |
implicit none | |
contains | |
subroutine c_penjumlahan(a, b, c) bind(c) | |
real(c_double), intent(in) :: a, b | |
real(c_double), intent(out) :: c | |
call penjumlahan(a, b, c) | |
You can find the documentation here.
You can easily install snakemake
on Farnam with mamba
:
module load miniconda
(defun argv () sb-ext:*posix-argv*) | |
(defmacro while (expr &body body) | |
`(do ((now ,expr ,expr)) ((not now)) ,@body)) | |
(defun deepcopy (x) | |
(if (atom x) x (mapcar #'deepcopy x))) | |
(defun cli (flags &key | |
(help "help") |
# OTFFT library | |
# http://wwwa.pikara.ne.jp/okojisan/otfft-en/optimization1.html | |
# This is +20-50% improvement | |
const thetaLutSize = 2048 | |
const thetaLut = static: | |
var arr: array[thetaLutSize, Complex[float]] | |
let step = 2.0*PI/float(thetaLutSize) | |
for k, v in mpairs(arr): | |
v = complex(cos(step * float(k)), -sin(step * float(k))) |
WSL2 requires Windows 10 version 2004 or higher (see the official documentation. Part of this guide is adapted and expanded from hubsian's guide on Emacs under WSL.
If you do not have WSL enabled already, follow the official installation instructions for WSL2. Once installed, make sure to have WSL2 installed with Ubuntu 20.04 by running the PowerShell as administrator and typing.
wsl -l -v