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
// clang++ ./cujit.cpp -I/opt/cuda/include/ -std=c++20 -lcuda | |
#include <cuda.h> | |
#include <format> | |
#include <iostream> | |
#include <source_location> | |
#include <stdexcept> | |
#include <string> | |
#include <string_view> |
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
use std::io; | |
use std::net::IpAddr::{V4, V6}; | |
use std::net::{Ipv4Addr, Ipv6Addr}; | |
use std::sync::Arc; | |
use std::time::Instant; | |
use anyhow::{anyhow, bail, Context, Result}; | |
use clap::Parser; | |
use env_logger::Env; | |
use hickory_resolver::config::*; |
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
#define FMT_HEADER_ONLY | |
#include <fmt/chrono.h> | |
#include <fmt/core.h> | |
#include <fmt/ostream.h> | |
#define SPDLOG_FMT_EXTERNAL | |
#include <spdlog/spdlog.h> | |
#include <getopt.h> |
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
#!/usr/bin/env python | |
import taichi as ti | |
import numpy as np | |
from matplotlib import cm | |
# Basic Taichi settings | |
ti.init(ti.gpu) | |
nx = 2000 |
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
*.gem | |
*.rbc | |
/.config | |
/coverage/ | |
/InstalledFiles | |
/pkg/ | |
/spec/reports/ | |
/spec/examples.txt | |
/test/tmp/ | |
/test/version_tmp/ |