Skip to content

Instantly share code, notes, and snippets.

@Keno
Keno / watchpoint.c
Created December 24, 2019 21:26
watchpoint.c
#include "util.h"
#define ARRAY_SIZE(a) \
((sizeof(a) / sizeof(*(a))) / \
!(sizeof(a) % sizeof(*(a))))
struct DebugControl {
uintptr_t dr0_local : 1;
uintptr_t dr0_global : 1;
uintptr_t dr1_local : 1;
module Branchy
using Base: significand_mask, significand_bits, exponent_mask, sign_mask
@inline function compute_base_shift(e)
if e < -25 # Very small numbers map to zero
base = 0x0000
sh = 25
elseif e < -14 # Small numbers map to denorms
base = 0x0000
sh = -e-1
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers [8086:190f] (rev 07)
Subsystem: Super Micro Computer Inc Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers [15d9:0884]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 0
Capabilities: [e0] Vendor Specific Information: Len=10 <?>
Kernel driver in use: skl_uncore
00: 86 80 0f 19 06 00 90 20 07 00 00 06 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 d9 15 84 08
/workspace/srcdir/julia/usr/share/julia/stdlib/v1.3/PkInternal error: encountered unexpected error in runtime:
TypeError(func=:Tuple, context="parameter", expected=Type, got=<?#0x7f27f22266b0::<circular reference @-1>>)
rec_backtrace at /workspace/srcdir/julia/src/stackwalk.c:94
record_backtrace at /workspace/srcdir/julia/src/task.c:216 [inlined]
jl_throw at /workspace/srcdir/julia/src/task.c:442
jl_type_error_rt at /workspace/srcdir/julia/src/rtutils.c:118
jl_f_apply_type at /workspace/srcdir/julia/src/builtins.c:927
jl_apply_generic at /workspace/srcdir/julia/src/gf.c:2192
jl_apply at /workspace/srcdir/julia/src/julia.h:1609 [inlined]
jl_f__apply at /workspace/srcdir/julia/src/builtins.c:626
commit 18e563f695dd561c32393512fbdb8ce8771d7e5f
Author: Keno Fischer <[email protected]>
Date: Thu May 2 08:35:22 2019 -0400
[SCEV] Add explicit representations of umin/smin
Summary:
Currently we express umin as `~umax(~x, ~y)`. However, this becomes
a problem for operands in non-integral pointer spaces, because `~x`
is not something we can compute for `x` non-integral. However, since
DRAM Init-DDR3
CBR0-1357135670123456701234567
CBR134Done
Loading kernel: [4038209a]
Loading device tree: [35cbc4d5]
Loading initrd: [087d899b]
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
2 1 ─ %1 = Main.randn(Main.Float32, 20)::Array{Float32,1} │
3 │ %2 = Zygote.unwrap(%1)::Array{Float32,1} │╻╷╷╷╷ gradient
│ %3 = Zygote.unwrap(_3)::Float32 ││╻╷ #21
│ %4 = Zygote.unwrap(_2)::Chain{Tuple{Dense{typeof(identity),Array{Float32,2},Array{Float32,1}}}} │││╻╷╷╷╷╷╷ gradient
│ %5 = Zygote.unwrap(%2)::Array{Float32,1} ││││╻╷╷╷╷ #22
│ %6 = Core.tuple(%5, %3)::Tuple{Array{Float32,1},Float32} │││││╻ _forward
│ %7 = Zygote.compute_szs(%6, 1)::Array{Int64,1}
HloModule test
comp2 {
ROOT comp2_constant3012 = f32[] constant(0)
}
comp3 {
ROOT comp3_constant3013 = f32[] constant(1)
}
HloModule test
comp1 {
comp1_parameter3867 = f32[] parameter(0)
comp1_parameter3868 = f32[] parameter(1)
ROOT comp1_divide3869 = f32[] divide(comp1_parameter3867, comp1_parameter3868)
}
comp2 {
comp2_parameter3875 = f32[] parameter(0)
HloModule test
comp1 {
comp1_parameter3990 = f32[] parameter(0)
comp1_parameter3991 = f32[] parameter(1)
ROOT comp1_divide3992 = f32[] divide(comp1_parameter3990, comp1_parameter3991)
}
comp2 {
comp2_parameter3998 = f32[] parameter(0)