Skip to content

Commit

Permalink
ci: back sol compat wksp with hugepages
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeng-jump committed Jan 8, 2025
1 parent 8c202e8 commit 4a85099
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ jobs:
env:
MACHINE: ${{ matrix.machine }}
EXTRAS: ${{ matrix.extras || '' }}
EXTRAS: ${{ matrix.run-unit-tests && matrix.run-unit-tests == true
? (matrix.extras || '') + ' ci'
: (matrix.extras || '') }}
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.compiler == 'gcc' && 'g++' || 'clang++' }}
steps:
Expand Down
2 changes: 2 additions & 0 deletions config/extra/with-ci.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CPPFLAGS+=-DFD_SOL_COMPAT_WKSP_INIT_USE_GIGANTIC=1
CFLAGS+=-DFD_SOL_COMPAT_WKSP_INIT_USE_GIGANTIC=1
5 changes: 5 additions & 0 deletions src/flamenco/runtime/tests/fd_exec_sol_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ void
sol_compat_wksp_init( void ) {
ulong cpu_idx = fd_tile_cpu_id( fd_tile_idx() );
if( cpu_idx>=fd_shmem_cpu_cnt() ) cpu_idx = 0UL;
#if FD_SOL_COMPAT_WKSP_INIT_USE_GIGANTIC
wksp = fd_wksp_new_anonymous( FD_SHMEM_GIGANTIC_PAGE_SZ, 5UL, fd_shmem_cpu_idx( fd_shmem_numa_idx( cpu_idx ) ), "wksp", 0UL );
FD_LOG_WARNING(("HAHAHAHAHAHA"));
#else
wksp = fd_wksp_new_anonymous( FD_SHMEM_NORMAL_PAGE_SZ, 65536UL * 18UL, fd_shmem_cpu_idx( fd_shmem_numa_idx( cpu_idx ) ), "wksp", 0UL );
#endif
assert( wksp );

spad_mem = fd_wksp_alloc_laddr( wksp, FD_SPAD_ALIGN, FD_RUNTIME_TRANSACTION_EXECUTION_FOOTPRINT_FUZZ, 3 ); /* 4738713960 B */
Expand Down

0 comments on commit 4a85099

Please sign in to comment.