forked from exoshuffle/raysort
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.envrc
39 lines (29 loc) · 1.37 KB
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Conda environment
layout anaconda raysort
# Make Python output unbuffered
export PYTHONUNBUFFERED=1
# GCC Flags
export CFLAGS="-Ofast -march=native"
export CXXFLAGS="-Ofast -march=native"
# Use Intel C++ compiler
export CC=/opt/intel/oneapi/compiler/latest/linux/bin/icx
export CXX=/opt/intel/oneapi/compiler/latest/linux/bin/icpx
export CFLAGS="-Ofast -xHost -ipo"
export CXXFLAGS="-Ofast -xHost -ipo"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64_lin/
# Set cache directory for Terraform plugins
export TF_PLUGIN_CACHE_DIR="$HOME/.terraform.d/plugin-cache"
# A bug in Terraform AWS requires us to set this environment variable
export AWS_DEFAULT_REGION=us-west-2
# Set AWS credentials for Hadoop AWS
export AWS_ACCESS_KEY_ID=$(sed -n 's/^aws_access_key_id = \(.*\)/\1/p' ~/.aws/credentials)
export AWS_SECRET_ACCESS_KEY=$(sed -n 's/^aws_secret_access_key = \(.*\)/\1/p' ~/.aws/credentials)
# Alternatively we can use the AWS CLI, but it is slow.
# export AWS_ACCESS_KEY_ID=$(aws configure get default.aws_access_key_id)
# export AWS_SECRET_ACCESS_KEY=$(aws configure get default.aws_secret_access_key)
# Raysort job configurations
export USER=lsf
# Cloud storage configurations
export S3_BUCKET=cloudsort
# Set a default config so that we don't need to supply CONFIG= for simple commands like `ssh`
export CONFIG="${CONFIG:-LocalSimple}"