File tree Expand file tree Collapse file tree 19 files changed +54
-73
lines changed Expand file tree Collapse file tree 19 files changed +54
-73
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,12 @@ Building the Rev SST component from source using CMake (>= 3.19) can be performe
4343 git clone
4444 git config core.hooksPath .githooks
4545 cd rev/build
46- cmake -DRVCC=/path/to/riscv/compiler/exe ..
46+ cmake -DRVCC=/path/to/riscv/c/compiler/exe -DRVCXX=/path/to/riscv/c++/ compiler/exe ..
4747 make -j
4848 make install
4949
50+ RVCC and RVCXX can be set as environment variables in lieu of passing them to CMake.
51+
5052Additional build options include:
5153 * -DBUILD_ASM_TESTING=ON
5254 * -DBUILD_DOCUMENTATION=ON : enables Doxygen source code generation (use ` make doc ` )
Original file line number Diff line number Diff line change @@ -140,15 +140,15 @@ macro(add_rev_test test_name test_dir timeout labels)
140140
141141 set_tests_properties (${test_name_lower} _revmem_${numHarts} _harts_${numCores} _cores
142142 PROPERTIES
143- ENVIRONMENT "RVCC=${RVCC} "
143+ ENVIRONMENT "RVCC=${RVCC} ;RVCXX= ${RVCXX} "
144144 TIMEOUT ${timeout}
145145 PASS_REGULAR_EXPRESSION "${passRegex} "
146146 LABELS "${labels} "
147147 )
148148 if (add_memh_test)
149149 set_tests_properties (${test_name_lower} _memh_${numHarts} _harts_${numCores} _cores
150150 PROPERTIES
151- ENVIRONMENT "RVCC=${RVCC} "
151+ ENVIRONMENT "RVCC=${RVCC} ;RVCXX= ${RVCXX} "
152152 TIMEOUT ${timeout}
153153 PASS_REGULAR_EXPRESSION "${passRegex} "
154154 LABELS "${labels} "
@@ -172,7 +172,7 @@ macro(add_rev_test test_name test_dir timeout labels)
172172 # Set test properties for the script test
173173 set_tests_properties (${test_name_lower} _script
174174 PROPERTIES
175- ENVIRONMENT "RVCC=${RVCC} "
175+ ENVIRONMENT "RVCC=${RVCC} ;RVCXX= ${RVCXX} "
176176 TIMEOUT ${timeout}
177177 PASS_REGULAR_EXPRESSION "${passRegex} "
178178 LABELS "${labels} "
Original file line number Diff line number Diff line change 1313.PHONY : src
1414
1515EXAMPLE =argv
16- CXX =riscv64-unknown-elf-g++
16+ CXX =${RVCXX}
1717ARCH =rv64imafdc
1818
1919all : $(EXAMPLE ) .exe
Original file line number Diff line number Diff line change 1313.PHONY : src
1414
1515EXAMPLE =simple_struct
16- CC =riscv64-unknown-elf-g++
17- # ARCH=rv64g
16+ CXX =${RVCXX}
1817ARCH =rv64gc
1918
2019all : $(EXAMPLE ) .exe
2120$(EXAMPLE ) .exe : $(EXAMPLE ) .cc
22- $(CC ) -march=$(ARCH ) -I../../../common/syscalls -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
21+ $(CXX ) -march=$(ARCH ) -I../../../common/syscalls -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
2322clean :
2423 rm -Rf $(EXAMPLE ) .exe
2524
Original file line number Diff line number Diff line change 11#
22# Makefile
33#
4- # makefile: vector
4+ # makefile: array
55#
66# Copyright (C) 2017-2024 Tactical Computing Laboratories, LLC
77# All Rights Reserved
1313.PHONY : src
1414
1515EXAMPLE =array
16- CC =riscv64-unknown-elf-g++
17- # CC="${RVCC}"
18- # ARCH=rv64g
16+ CXX =${RVCXX}
1917ARCH =rv64gc
2018
2119all : $(EXAMPLE ) .exe
2220$(EXAMPLE ) .exe : $(EXAMPLE ) .cc
23- $(CC ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
21+ $(CXX ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
2422clean :
2523 rm -Rf $(EXAMPLE ) .exe
2624
Original file line number Diff line number Diff line change 11#
22# Makefile
33#
4- # makefile: vector
4+ # makefile: map
55#
66# Copyright (C) 2017-2024 Tactical Computing Laboratories, LLC
77# All Rights Reserved
1313.PHONY : src
1414
1515EXAMPLE =map
16- CC =riscv64-unknown-elf-g++
17- # CC="${RVCC}"
18- # ARCH=rv64g
16+ CXX =${RVCXX}
1917ARCH =rv64gc
2018
2119all : $(EXAMPLE ) .exe
2220$(EXAMPLE ) .exe : $(EXAMPLE ) .cc
23- $(CC ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
21+ $(CXX ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
2422clean :
2523 rm -Rf $(EXAMPLE ) .exe
2624
Original file line number Diff line number Diff line change 11#
22# Makefile
33#
4- # makefile: vector
4+ # makefile: map_obj
55#
66# Copyright (C) 2017-2024 Tactical Computing Laboratories, LLC
77# All Rights Reserved
1313.PHONY : src
1414
1515EXAMPLE =map_obj
16- CC =riscv64-unknown-elf-g++
17- # CC="${RVCC}"
18- # ARCH=rv64g
16+ CXX =${RVCXX}
1917ARCH =rv64gc
2018
2119all : $(EXAMPLE ) .exe
2220$(EXAMPLE ) .exe : $(EXAMPLE ) .cc
23- $(CC ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
21+ $(CXX ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
2422clean :
2523 rm -Rf $(EXAMPLE ) .exe
2624
Original file line number Diff line number Diff line change 11#
22# Makefile
33#
4- # makefile: vector
4+ # makefile: multimap
55#
66# Copyright (C) 2017-2024 Tactical Computing Laboratories, LLC
77# All Rights Reserved
1313.PHONY : src
1414
1515EXAMPLE =multimap
16- CC =riscv64-unknown-elf-g++
17- # CC="${RVCC}"
18- # ARCH=rv64g
16+ CXX =${RVCXX}
1917ARCH =rv64gc
2018
2119all : $(EXAMPLE ) .exe
2220$(EXAMPLE ) .exe : $(EXAMPLE ) .cc
23- $(CC ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
21+ $(CXX ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
2422clean :
2523 rm -Rf $(EXAMPLE ) .exe
2624
Original file line number Diff line number Diff line change 11#
22# Makefile
33#
4- # makefile: vector
4+ # makefile: multimap_obj
55#
66# Copyright (C) 2017-2024 Tactical Computing Laboratories, LLC
77# All Rights Reserved
1313.PHONY : src
1414
1515EXAMPLE =multimap_obj
16- CC =riscv64-unknown-elf-g++
17- # CC="${RVCC}"
18- # ARCH=rv64g
16+ CXX =${RVCXX}
1917ARCH =rv64gc
2018
2119all : $(EXAMPLE ) .exe
2220$(EXAMPLE ) .exe : $(EXAMPLE ) .cc
23- $(CC ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
21+ $(CXX ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
2422clean :
2523 rm -Rf $(EXAMPLE ) .exe
2624
Original file line number Diff line number Diff line change 11#
22# Makefile
33#
4- # makefile: vector
4+ # makefile: unordered_map
55#
66# Copyright (C) 2017-2024 Tactical Computing Laboratories, LLC
77# All Rights Reserved
1313.PHONY : src
1414
1515EXAMPLE =unordered_map
16- CC =riscv64-unknown-elf-g++
17- # CC="${RVCC}"
16+ CXX =${RVCXX}
17+ CXX =riscv64-unknown-elf-g++ # TODO: Remove this line when "frflags" instruction is implemented (for floor function)
18+
1819# ARCH=rv64g
1920ARCH =rv64gc
2021
2122all : $(EXAMPLE ) .exe
2223$(EXAMPLE ) .exe : $(EXAMPLE ) .cc
23- $(CC ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
24+ $(CXX ) -march=$(ARCH ) -O0 -I../../../../common/include -I../../../../common/syscalls -I../../../include -o $(EXAMPLE ) .exe $(EXAMPLE ) .cc -static
2425clean :
2526 rm -Rf $(EXAMPLE ) .exe
2627
You can’t perform that action at this time.
0 commit comments