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
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 |
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
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 |
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
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 |
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
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 | |
|__/ | |
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
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] | |
│ |
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
_ | |
_ _ _(_)_ | Documentation: https://docs.julialang.org | |
(_) | (_) (_) | | |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 1.3.0 (2019-11-26) | |
_/ |\__'_|_|_|\__'_| | | |
|__/ | | |
julia> Sys.ARCH |
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
using Makie, JLD2 | |
file = jldopen("eddying_channel_375000.jld2") | |
T = file["T"] | |
close(file) | |
Tx, Ty, Tz = size(T) # Total number of grid points. | |
Nx, Ny, Nz = Tx-2, Ty-2, Tz # Number of interior grid points. | |
Hx, Hy, Hz = Tx-Nx, Ty-Ny, Tz-Nz # Size of halo regions. | |
Lx, Ly, Lz = 250, 500, 100 # Domain size: 250×500×1 km |
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
Overhead ╎ [+additional indent] Count File:Line; Function | |
========================================================= | |
╎263 @Base/task.jl:358; (::REPL.var"#26#27"{REPL.REPLBackend})() | |
╎ 263 ...kage_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:118; macro expansion | |
╎ 263 ...kage_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86; eval_user_input(::Any, ::REPL.REPLBackend) | |
17╎ 263 @Base/boot.jl:331; eval(::Module, ::Any) | |
╎ 245 @Oceananigans/src/TimeSteppers/adams_bashforth.jl:41; time_step!(::IncompressibleModel{Oceananigans.TimeSteppers.AdamsBashforthTimeStepper{Float64,N... | |
╎ 8 @Oceananigans/src/TimeSteppers/adams_bashforth.jl:48; time_step!(::IncompressibleModel{Oceananigans.TimeSteppers.AdamsBashforthTimeStepper{Float64,N... | |
╎ ╎ 8 @Oceananigans/src/TimeSteppers/generic_time_stepping.jl:13; time_step_precomputations!(::Nothing, ::NamedTuple{(:pHY′, :pNHS),Tuple{OffsetArrays.OffsetAr... | |
╎ ╎ 8 @Oceananigans/src/BoundaryConditions |
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
using Printf | |
using PyCall | |
using PyPlot | |
using NCDatasets | |
cmocean = pyimport("cmocean") | |
ioff() # Turn off interactive plotting | |
ds = NCDataset("dry_convection.nc") |
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
using Distributed | |
procs = Distributed.addprocs(16) | |
@everywhere begin | |
using Printf | |
using Dagger | |
using PyCall | |
using PyPlot | |
using NCDatasets |
OlderNewer