This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/memreserve/ 0x0000000000000000 0x0000000000001000; | |
/ { | |
#address-cells = <0x1>; | |
#size-cells = <0x1>; | |
model = "Terasic DE-0(Atlas)"; | |
compatible = "altr,socfpga-cyclone5", "altr,socfpga"; | |
chosen { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/memreserve/ 0x0000000000000000 0x0000000000001000; | |
/ { | |
#address-cells = <0x1>; | |
#size-cells = <0x1>; | |
model = "Terasic DE-0(Atlas)"; | |
compatible = "altr,socfpga-cyclone5", "altr,socfpga"; | |
chosen { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[nix-shell:~/cadquery]$ git clone https://github.com/tpaviot/pythonocc-core.git | |
Cloning into 'pythonocc-core'... | |
remote: Enumerating objects: 14342, done. | |
remote: Total 14342 (delta 0), reused 0 (delta 0), pack-reused 14342 | |
Receiving objects: 100% (14342/14342), 59.13 MiB | 9.49 MiB/s, done. | |
Resolving deltas: 100% (11509/11509), done. | |
[nix-shell:~/cadquery]$ cd pythonocc-core | |
[nix-shell:~/cadquery/pythonocc-core]$ git checkout -t 0.18.1 | |
Switched to a new branch '0.18.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE MagicHash #-} | |
module BlockRamHack where | |
import Data.Maybe (fromJust, isJust) | |
import Clash.Prelude | |
import qualified Clash.Explicit.Prelude as E | |
import Clash.Explicit.BlockRam (blockRam#) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, lib, buildPythonPackage, fetchPypi, scipy, scikitlearn, numpy | |
, matplotlib, ipywidgets, plyfile, pandas, pyyaml, tqdm, tree, unzip, zip | |
, autoPatchelfHook, pytorchWithCuda, libtensorflow-bin, libusb, cudaPackages | |
, libGL }: | |
let | |
addict = buildPythonPackage { | |
pname = "addict"; | |
version = "2.4.0"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 0.000000] Linux version 5.15.85 (nixbld@localhost) (gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.39) #1-NixOS SMP Wed Dec 21 16:36:38 UTC 2022 | |
[ 0.000000] Command line: initrd=\efi\nixos\j4181djg7k4ikw06z7740zlq6b0p9h5s-initrd-linux-5.15.85-initrd.efi init=/nix/store/5d4j8cc84q0cshq79j6gz67b2f7075s1-nixos-system-rowanG-nixos-23.05pre438362.e182da8622a/init memmap=14M$18M msr.allow_writes=on nopat i915.enable_psr=0 i915.enable_fbc=0 i915.perf_stream_paranoid=0 loglevel=4 | |
[ 0.000000] x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x020: 'AVX-512 opmask' | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x040: 'AVX-512 Hi256' | |
[ 0.000000] x86/fpu: Supporting XSAVE f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE UndecidableInstances #-} | |
{-# LANGUAGE MagicHash #-} | |
{-# LANGUAGE BangPatterns #-} | |
{-# LANGUAGE AllowAmbiguousTypes #-} | |
import Clash.Explicit.Prelude | |
import Clash.Annotations.Primitive | |
import GHC.TypeLits.KnownNat (KnownBool, boolVal) | |
import Data.Proxy (Proxy(..)) | |
import Data.Maybe (isJust) |