Skip to content

Instantly share code, notes, and snippets.

Ali Ramadhan ali-ramadhan

  • Massachusetts Institute of Technology
  • Cambridge, MA, USA
Block or report user

Report or block ali-ramadhan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View conda.jl_test_log_power9.txt
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.3.0 (2019-11-26)
_/ |\__'_|_|_|\__'_| |
|__/ |
julia> Sys.ARCH
View gist:6a36885905a3f245e7dedb418a867116
Building NCDatasets → `~/.julia/packages/NCDatasets/6tnso/deps/build.log`
┌ Error: Error building `NCDatasets`:
│ PREFIX=/home/alir/.julia/conda/3
│ Unpacking payload ...
│ /home/alir/.julia/conda/3/installer.sh: line 351: /home/alir/.julia/conda/3/conda.exe: cannot execute binary file
│ /home/alir/.julia/conda/3/installer.sh: line 353: /home/alir/.julia/conda/3/conda.exe: cannot execute binary file
│ [ Info: Downloading miniconda installer ...
│ [ Info: Installing miniconda ...
│ ERROR: LoadError: failed process: Process(`/home/alir/.julia/conda/3/installer.sh -b -f -p /home/alir/.julia/conda/3`, ProcessExited(1)) [1]
View gist:ec039bd71c21daff23c140b8aec180eb
ali-ramadhan@cyclops:~/Oceananigans.jl$ julia --project
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.1.0 (2019-01-21)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
View SchizophrenicRetribution.py
from random import random, choices
from Prisoner import Prisoner
"""
SchizophrenicRetribution: an old Prisoner who usually copies their
opponent's last choice, but forgets what to do as time goes on so
they usually just cooperate with anyone and everyone.
They won't stop telling you the same stories from their glory days
View gist:1d82f1414642fa9b5ba3b1300c51f66e
julia> CUDAnative.code_llvm(Oceananigans.calculate_interior_source_terms!, (RegularCartesianGrid, PlanetaryConstants, LinearEquationOfState, ModelConfiguration, CuArray, CuArray, CuArray, CuArray, CuArray, CuArray, CuArray, CuArray, CuArray, CuArray, CuArray, Forcing))
define void @julia_calculate_interior_source_terms__17(%jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull) local_unnamed_addr {
top:
%16 = alloca [15 x %jl_value_t addrspace(10)*], align 8
%.sub = getelementptr inbounds [15 x
View gist:04eec486a05551433a1c52feebb2b889
julia> CUDAnative.code_llvm(Oceananigans.calculate_interior_source_terms!, (Grid, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any))
define void @julia_calculate_interior_source_terms__15(%jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull, %jl_value_t addrspace(10)* nonnull) local_unnamed_addr {
top:
%16 = alloca [15 x %jl_value_t addrspace(10)*], align 8
%.sub = getelementptr inbounds [15 x %jl_value_t addrspace(10)*], [15 x %jl_value_t addrspace(10)*]* %16, i64 0, i64 0
store %jl_value_t addrspace
You can’t perform that action at this time.