Notes go here.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
import sympy | |
def custom_latex_printer(exp, **options): | |
from google.colab.output._publish import javascript | |
url = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/latest.js?config=default" | |
javascript(url=url) | |
return sympy.printing.latex(exp, **options) | |
sympy.init_printing(use_latex="mathjax", latex_printer=custom_latex_printer) |
This file contains hidden or 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
PS C:\work\bazel-out> cat external/local_config_cc/windows_cc_toolchain_config.bzl | |
# Copyright 2019 The Bazel Authors. All rights reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
This file contains hidden or 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
;;;; This script can be loaded during emacs initialization to automatically | |
;;;; send `kill-region' and `kill-ring-save' regions to your system clipboard. | |
;;;; The OSC 52 terminal escape sequence is used to transfer the selection from | |
;;;; emacs to the host terminal. | |
;;;; It is based off of the osc52.el copyright the Chromium OS authors, but | |
;;;; was modified to add support for tmux, graphical displays, and | |
;;;; multi-byte strings. | |
;;;; It works in hterm, xterm, and other terminal emulators which support the |
This file contains hidden or 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
class b; | |
int f; | |
namespace c { | |
template <typename> struct d {}; | |
namespace cuda { | |
namespace detail { | |
struct e {}; | |
template <typename, typename> struct g : d<g<int, int>> {}; | |
template <typename h, typename i> g<h, i> j(h, i); | |
} // namespace detail |
This file contains hidden or 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
See the comment for the before/after comparison. |
This file contains hidden or 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
; ModuleID = 'x2.bc' | |
source_filename = "merged_12-9d953f.hip.i.cc" | |
target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5-ni:7" | |
target triple = "amdgcn-amd-amdhsa" | |
%struct.wibble = type { <4 x float> } | |
%struct.wombat = type { float } | |
@global = external hidden addrspace(1) global %struct.wibble*, align 8 |
This file contains hidden or 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
/* Search in terms of symbol name and section name */ | |
bool Elf::get_symbol(const std::string& name, const std::string& section_name, | |
Elf64_Addr& value, Elf_Xword& size, unsigned char& bind, | |
unsigned char& type, Elf_Half& section_index, | |
unsigned char& other) const { | |
bool ret = false; | |
symbol_section_accessor symbol_reader(_elfio, _elfio.sections[_symtab_ndx]); | |
// Opportunistic lookup, in case the name is unique. | |
if (symbol_reader.get_symbol(name, value, size, bind, type, section_index, | |
other)) { |
OlderNewer