Kyle Fredrickson 1 рік тому
батько
коміт
e7856f5c7e

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+*/target

+ 5 - 0
baseline/.cargo/config.toml

@@ -0,0 +1,5 @@
+[target.x86_64-fortanix-unknown-sgx]
+runner = "ftxsgx-runner-cargo"
+
+[build]
+target = "x86_64-fortanix-unknown-sgx"

+ 23 - 0
baseline/Cargo.lock

@@ -0,0 +1,23 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "baseline"
+version = "0.1.0"
+dependencies = [
+ "otils",
+]
+
+[[package]]
+name = "cc"
+version = "1.0.98"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41c270e7540d725e65ac7f1b212ac8ce349719624d7bcff99f8e2e488e8cf03f"
+
+[[package]]
+name = "otils"
+version = "0.1.0"
+dependencies = [
+ "cc",
+]

+ 12 - 0
baseline/Cargo.toml

@@ -0,0 +1,12 @@
+[package]
+name = "baseline"
+version = "0.1.0"
+edition = "2021"
+
+[dependencies]
+otils = { path = "../otils" }
+
+[package.metadata.fortanix-sgx]
+stack-size=0x400000
+heap-size=0x100000000
+threads=9

+ 7 - 0
baseline/src/main.rs

@@ -0,0 +1,7 @@
+use otils;
+
+fn main() {
+    let mut v: Vec<i64> = (0..128).rev().collect();
+    otils::osort(&mut v[..], 8);
+    println!("{:?}", v);
+}

+ 0 - 0
baseline/src/omq.rs


+ 0 - 0
baseline/src/request.rs