Skip to content

Commit

Permalink
fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zommiommy committed Jun 14, 2024
1 parent 86ab66a commit cf348da
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
1 change: 1 addition & 0 deletions graph/csr/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(internal_features)]
#![feature(core_intrinsics)]
use std::hash::{Hash, Hasher};
use std::intrinsics::unlikely;
Expand Down
2 changes: 1 addition & 1 deletion graph/express_measures/src/dot.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use crate::types::*;
use crate::validation::*;
use core::fmt::Debug;
use core::intrinsics::unlikely;
use core::ops::Mul;
use rayon::prelude::*;
use std::iter::Sum;
use core::intrinsics::unlikely;

#[inline(always)]
/// Returns the dot product between the two provided vectors computed sequentially.
Expand Down
1 change: 1 addition & 0 deletions graph/express_measures/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(internal_features)]
#![feature(core_intrinsics)]
mod cosine_similarity;
mod element_wise_operations;
Expand Down
40 changes: 40 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Nix shell for building the python wheels ready for publication
{ pkgs ? import <nixpkgs> {} }:

let
rustupToolchain = "nightly-2024-06-13";
in
pkgs.mkShell {
buildInputs = with pkgs; [
python311

rustup
maturin

stdenv
pkg-config
openssl
which
gcc
binutils

# All the C libraries that a manylinux_1 wheel might depend on:
ncurses
xorg.libX11
xorg.libXext
xorg.libXrender
xorg.libICE
xorg.libSM
glib
];

RUST_BACKTRACE = 1;
# use nightly bcz all the features we need are in nightly
RUSTUP_TOOLCHAIN = rustupToolchain;
# make everything self-contained to this folder
CARGO_HOME = toString ./.cargo_home;
RUSTUP_HOME = toString ./.rustup;

CXX = "zig c++ -target x86_64-linux-gnu.2.16";
CC = "zig cc -target x86_64-linux-gnu.2.16";
}

0 comments on commit cf348da

Please sign in to comment.