Skip to content

Instantly share code, notes, and snippets.

View appleparan's full-sized avatar

Jongsu Liam Kim appleparan

View GitHub Profile
┌ Debug: Initializing CUDA after call to cuMemAlloc
└ @ CUDAnative ~/.julia/packages/CUDAnative/wU0tS/src/init.jl:32
┌ Debug: (Re)compiling function
│ job = CUDAnative.CompilerJob(getfield(GPUArrays, Symbol("##23#24"))(), Tuple{CuArrays.CuKernelState,CuDeviceArray{Float32,1,CUDAnative.AS.Global},Base.Broadcast.Broadcasted{Nothing,Tuple{Base.OneTo{Int64}},typeof(CUDAnative.abs),Tuple{Base.Broadcast.Extruded{CuDeviceArray{Float32,1,CUDAnative.AS.Global},Tuple{Bool},Tuple{Int64}}}}}, v"6.1.0", true, nothing, nothing, nothing, nothing)
└ @ CUDAnative ~/.julia/packages/CUDAnative/wU0tS/src/compiler/driver.jl:36
┌ Debug: Compiled getfield(GPUArrays, Symbol("##23#24"))() to PTX 6.1.0 for SM 6.1.0 using 11 registers.
│ Memory usage: 0 bytes local, 0 bytes shared, 256 bytes constant
└ @ CUDAnative ~/.julia/packages/CUDAnative/wU0tS/src/execution.jl:380
┌ Debug: (Re)compiling function
│ job = CUDAnative.CompilerJob(getfield(GPUArrays, Symbol("##23#24"))(), Tuple{CuArrays.CuKernelState,CuDeviceArray{Float32,1,CUDAna
@appleparan
appleparan / CentOS-Base.repo
Created March 10, 2019 00:20
CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
@appleparan
appleparan / fftw_ex.f90
Last active March 6, 2022 12:32
Fortran FFTW example
program main
use ISO_C_BINDING
implicit none
include 'fftw3.f03'
real, allocatable :: test_in(:)
integer(8) :: plan_c2r, plan_r2c
integer :: n, i
@appleparan
appleparan / mpiP_install.md
Last active October 7, 2018 06:27
mpiP install from scratch
  • Assume that you already have quite recent version of gcc
  1. install binutils
    1. get recent version of https://ftp.gnu.org/gnu/binutils/

        cd ~
        mkdir src
      
    2. copy this file to src directory

@appleparan
appleparan / Install_OpenFOAM.md
Last active June 5, 2022 07:34
Install OpenFOAM
  • $ means shell prompt
  1. Install gcc (Takes very long time, about 6 hours)

    1. go to ~/src
    $ cd ~/src
    
    1. install gcc (for cmake, takes few HOURS)
@appleparan
appleparan / Install_PETSc.md
Last active July 5, 2018 08:12
Instruction: how to compile PETSc and install it
  • $ means shell prompt
  1. Install gcc

    1. go to ~/src
    $ cd ~/src
    
    1. install gcc (for cmake, takes few HOURS)
@appleparan
appleparan / XdmfSample.xmf
Last active March 8, 2022 14:46
Xdmf Time Series for HDF5 dataset for fluid & particle (3D Cartesian Grid (with blanking) + Unstructured Grid)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf Version="3.0" xmlns:xi="http://www.w3.org/2001/XInclude">
<Domain>
<Grid Name="Fluid" GridType="Collection" CollectionType="Temporal">
<Grid Name="Fluid0000" GridType="Uniform">
<Time Value="0.0" />
<Topology Name="FluidTopo" TopologyType="3DCoRectMesh" Dimensions="192 192 192" />
<Geometry Name="FluidGeo" GeometryType="ORIGIN_DXDYDZ">
<DataItem Name="FluidOrigin" Format="XML" Dimensions="3" NumberType="Float" Precision="8">
@appleparan
appleparan / update_julia.sh
Created August 15, 2017 19:10
Update Julia Nightly (For docker)
#!/bin/bash
# inspired from travis CI julia support
# https://github.com/travis-ci/travis-build/blob/1b50ac7aeff53e2fed4c629920ebbb4814e71ea8/lib/travis/build/script/julia.rb
echo 'Installing Julia'
CURL_USER_AGENT="Travis-CI $(curl --version | head -n 1)"
JULIA_URL="https://julialangnightlies-s3.julialang.org/bin/linux/x64/julia-latest-linux64.tar.gz"
mkdir -p ~/julia
curl -A "$CURL_USER_AGENT" -k -s -L --retry 7 $JULIA_URL | tar -C ~/julia -x -z --strip-components=1 -f -
@appleparan
appleparan / Solarized High Contrast Dark.itermcolors
Created November 6, 2015 02:45 — forked from heisters/Solarized High Contrast Dark.itermcolors
Solarized High Contrast Dark theme for iTerm2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19370138645172119</real>
<key>Green Component</key>
<real>0.15575926005840302</real>
=== Verbose logging started: 2015-08-17 12:18:33 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\WINDOWS\system32\msiexec.exe ===
MSI (c) (94:EC) [12:18:33:722]: Font created. Charset: Req=129, Ret=129, Font: Req=굴림, Ret=굴림
MSI (c) (94:EC) [12:18:33:738]: Font created. Charset: Req=129, Ret=129, Font: Req=굴림, Ret=굴림
MSI (c) (94:4C) [12:18:33:738]: Resetting cached policy values
MSI (c) (94:4C) [12:18:33:738]: Machine policy value 'Debug' is 0