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
#!/usr/bin/env python3 | |
""" | |
Script to check 1:1 mapping between int8 and bfloat16 data types. | |
This script iterates through all possible int8 values (-128 to 127), | |
converts each to bfloat16, and checks if there's a bijective mapping | |
between the two data types. | |
""" | |
import numpy as np |
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
cmake_minimum_required(VERSION 3.10) | |
project(ClangToolingExample) | |
# libastcanopy shared lib targget | |
find_package(Clang REQUIRED) | |
# Add include directories | |
include_directories(${CLANG_INCLUDE_DIRS}) | |
# Add the source files for your Clang tool |
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 os | |
import pkgutil | |
import importlib | |
from inspect import getmembers, isfunction | |
import cuml | |
import json | |
import pprint | |
pp = pprint.PrettyPrinter(indent=4) |
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
from dataclasses import dataclass | |
import subprocess | |
benchmark_bin = "/home/coder/cuspatial/cpp/build/release/benchmarks/LINESTRING_DISTANCES_BENCH" | |
attr_names = ["NumPairs", | |
"NumLineStringsPerMultiLineString", | |
"NumSegmentsPerLineString"] | |
@dataclass |
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.
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 cupy as cp | |
import pandas as pd | |
import cudf | |
def make_non_monotonic_non_unique_multiindex(N): | |
half_n = int(N / 2) | |
l0 = cp.concatenate([cp.arange(0, half_n), cp.full(half_n, 42)]) | |
l1 = cp.concatenate([cp.arange(half_n, N), cp.full(half_n, 42)]) | |
random_order = cp.arange(0, N) | |
cp.random.shuffle(random_order) |
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 cupy as cp | |
import pandas as pd | |
import cudf | |
import time | |
def make_non_monotonic_non_unique_multiindex(N): | |
half_n = int(N / 2) | |
l0 = cp.concatenate([cp.arange(0, half_n), cp.full(half_n, 42)]) | |
l1 = cp.concatenate([cp.arange(half_n, N), cp.full(half_n, 42)]) | |
random_order = cp.arange(0, N) |
NewerOlder