Skip to content

Instantly share code, notes, and snippets.

View joechai93's full-sized avatar

Joe Chai joechai93

  • Brisbane, Australia
View GitHub Profile
@joechai93
joechai93 / cuda-11.2_installation_on_Ubuntu-18.04
Created September 30, 2021 01:03 — forked from mcvarer/cuda-11.2_installation_on_Ubuntu-18.04
CUDA 11.2 Installation on Ubuntu 18.04
#!/bin/bash
## This gist contains instructions about cuda v11.2 and cudnn 8.1 installation in Ubuntu 18.04 for PyTorch
#############################################################################################
##### forked by : https://gist.github.com/Mahedi-61/2a2f1579d4271717d421065168ce6a73 ########
#############################################################################################
### steps ####
# verify the system has a cuda-capable gpu
@joechai93
joechai93 / rand.cpp
Created January 17, 2022 07:34 — forked from uchida/rand.cpp
boost random distribution usage sample
#include <iostream>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_real_distribution.hpp>
#include <boost/random/normal_distribution.hpp>
int main(int argc, char* argv[])
{
size_t seed = 1234567890;