Skip to content

Commit 92326f4

Browse files
authored
Make compiler performance not embarrassing (#544)
1 parent f2504cb commit 92326f4

File tree

19 files changed

+2849
-374
lines changed

19 files changed

+2849
-374
lines changed

.github/workflows/rocm_setup_run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ echo deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.c
1313
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \
1414
| tee /etc/apt/preferences.d/rocm-pin-600
1515
DEBIAN_FRONTEND=noninteractive apt update -y
16-
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends amdgpu-dkms hip-runtime-amd
16+
# rocm-smi-lib shouldn't be necessary, but somehow ptx tests started linking to it.
17+
# Result of Rust 1.90 linker change?
18+
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends amdgpu-dkms hip-runtime-amd rocm-smi-lib
1719
echo 'export PATH="$PATH:/opt/rocm/bin"' | tee /etc/profile.d/rocm.sh
1820
echo "/opt/rocm/lib" | tee /etc/ld.so.conf.d/rocm.conf
1921
ldconfig

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
url = https://github.com/llvm/llvm-project
44
branch = release/17.x
55
shallow = true
6+
[submodule "ext/HiGHS"]
7+
path = ext/HiGHS
8+
url = https://github.com/ERGO-Code/HiGHS.git
9+
shallow = true

Cargo.lock

Lines changed: 54 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ members = [
99
"dark_api",
1010
"detours-sys",
1111
"ext/amd_comgr-sys",
12+
"ext/highs-sys",
1213
"ext/hip_runtime-sys",
1314
"ext/hipblaslt-sys",
1415
"ext/miopen-sys",
@@ -55,3 +56,6 @@ lto = true
5556

5657
[profile.dev.package.xtask]
5758
opt-level = 2
59+
60+
[patch.crates-io]
61+
highs-sys = { path = "ext/highs-sys" }

ext/HiGHS

Submodule HiGHS added at 364c83a

ext/highs-sys/Cargo.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[package]
2+
name = "highs-sys"
3+
version = "1.11.0"
4+
authors = ["Ophir LOJKINE"]
5+
edition = "2018"
6+
description = "Rust binding for the HiGHS linear programming solver. See http://highs.dev."
7+
license = "MIT"
8+
repository = "https://github.com/rust-or/highs-sys"
9+
keywords = ["linear-programming", "optimization", "math", "solver"]
10+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
11+
12+
[dependencies]
13+
14+
[build-dependencies]
15+
bindgen = "0.71.1"
16+
cmake = { version = "0.1.49", optional = true }
17+
pkg-config = { version = "0.3.27", optional = true }
18+
19+
[features]
20+
default = ["build", "highs_release"]
21+
discover = ["dep:pkg-config"]
22+
build = ["dep:cmake"]
23+
highs_release = []
24+
ninja = []
25+
libz = []

0 commit comments

Comments
 (0)