Skip to content

Commit 68f3e87

Browse files
authored
Moved to latest conda incubator (#242)
Signed-off-by: Knute <56927209+klingaard@users.noreply.github.com>
1 parent 175595f commit 68f3e87

File tree

12 files changed

+29
-428
lines changed

12 files changed

+29
-428
lines changed

.github/actions/build/entrypoint.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ echo "PWD:" `pwd`
1515
CXX_COMPILER=${COMPILER/clang/clang++}
1616
CXX_COMPILER=${CXX_COMPILER/gcc/g++}
1717

18+
NUM_CORES=$(nproc 2>/dev/null || sysctl -n hw.logicalcpu)
19+
20+
# Print the ulimits
21+
ulimit -a
22+
1823
#
1924
# Compile Sparta Infra (always build with release)
2025
# Have other build types point to release
@@ -28,7 +33,7 @@ if [ $? -ne 0 ]; then
2833
echo "ERROR: Cmake for Sparta framework failed"
2934
exit 1
3035
fi
31-
make -j$(nproc --all) install
36+
make -j$NUM_CORES install
3237
BUILD_SPARTA=$?
3338
if [ ${BUILD_SPARTA} -ne 0 ]; then
3439
echo "ERROR: build sparta FAILED!!!"
@@ -43,7 +48,7 @@ if [ $? -ne 0 ]; then
4348
echo "ERROR: Cmake for olympia failed"
4449
exit 1
4550
fi
46-
make -j$(nproc --all) regress
51+
make -j$NUM_CORES regress
4752
BUILD_OLYMPIA=$?
4853
if [ ${BUILD_OLYMPIA} -ne 0 ]; then
4954
echo "ERROR: build/regress of olympia FAILED!!!"
File renamed without changes.

.github/workflows/conda/macos_env.yml

Lines changed: 10 additions & 179 deletions
Large diffs are not rendered by default.

.github/workflows/macos-build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
# Strategy is a matrix of debug and release builds/regression
1414
matrix:
15-
os: [macos-14]
15+
os: [macos-latest]
1616
BUILD_TYPE: [Debug]
1717
COMPILER: [clang]
1818

@@ -63,9 +63,8 @@ jobs:
6363
${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache
6464
6565
- name: Setup Conda Environment
66-
uses: conda-incubator/setup-miniconda@v2
66+
uses: conda-incubator/setup-miniconda@v3
6767
with:
68-
miniforge-variant: Mambaforge
6968
channels: conda-forge,defaults
7069
channel-priority: true
7170
activate-environment: riscv_perf_model

.github/workflows/ubuntu-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Cache conda deps
5151
uses: actions/cache@v3
5252
with:
53-
key: ${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-conda-${{ hashFiles('conda/environment.yml') }}
53+
key: ${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-conda-${{ hashFiles('.github/workflows/conda/environment.yml') }}
5454
path: /usr/share/miniconda/envs/riscv_perf_model # Default path for conda
5555

5656
# Setup CCache to cache builds
@@ -66,7 +66,7 @@ jobs:
6666
run: |
6767
# $CONDA is an environment variable pointing to the root of the miniconda directory
6868
$CONDA/bin/conda config --set channel_priority strict
69-
$CONDA/bin/conda env update --file ${{ github.workspace }}/conda/environment.yml
69+
$CONDA/bin/conda env update --file ${{ github.workspace }}/.github/workflows/conda/environment.yml
7070
$CONDA/bin/conda init bash
7171
7272
# Build

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ add_definitions(-DOLYMPIA_VERSION=\"${OLYMPIA_VERSION}\")
5858
# Profile build flags
5959
set(CMAKE_CXX_FLAGS_PROFILE "-O3 -pg -g -ftime-trace")
6060
set(CMAKE_CXX_FLAGS_FASTDEBUG "-O3 -g")
61-
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
61+
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -U_FORTIFY_SOURCE")
6262

6363
# Include directories
6464
include_directories (core mss sim)
@@ -128,4 +128,3 @@ add_custom_target(clangformat-check
128128
COMMENT
129129
"Formatting ${prefix} with ${CLANGFORMAT_EXECUTABLE} ..."
130130
)
131-

conda/environment_for_macos.yml

Lines changed: 0 additions & 220 deletions
This file was deleted.

conda/environment_from_history.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ add_subdirectory(core/rename)
3333
add_subdirectory(core/lsu)
3434
add_subdirectory(core/issue_queue)
3535
add_subdirectory(core/icache)
36-
add_subdirectory(core/branch_pred)
36+
#add_subdirectory(core/branch_pred)
3737
add_subdirectory(core/dcache)
3838
add_subdirectory(core/vector)
3939
add_subdirectory(core/unit_template)

0 commit comments

Comments
 (0)