Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ repos:
args: ["-style=Google"]
- id: cpplint # linter (or style-error checker) for Google C++ Style Guide
- id: cppcheck # static analyzer of C/C++ code
args: ["--check-level=exhaustive"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.255' # Ruff version.
hooks:
Expand Down
2 changes: 1 addition & 1 deletion frontend/enso/enso_nic.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(
tx_credits: int = DEFAULT_NB_TX_CREDITS,
ethernet_port: int = DEFAULT_ETH_PORT,
desc_per_pkt: bool = False,
latency_opt: bool = False,
latency_opt: bool = True,
skip_config: bool = False,
verbose: bool = False,
log_file: Union[bool, TextIO] = False,
Expand Down
14 changes: 14 additions & 0 deletions scripts/load_bitstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,22 @@ DEVICE_ID="0000"

FPGA_NB=${1:-"1-13"}

BITSTREAM_NAME="enso.sof"

cd $SCRIPT_DIR

# Check and download the bitstream
if ! [ -f $PWD/$BITSTREAM_NAME ]; then
$PWD/update_bitstream.sh --download
if [ $? -eq 0 ]; then
echo "Programming bitstream now..."
else
echo "Failed: Could not download bitstream!"
exit 1
fi
fi


# We use taskset and chrt to benefit from multiple cores even when they are
# isolated from the linux scheduler. This significantly speeds up loading the
# bitstream. Note that we use all but the last core.
Expand Down
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ else
fi

# Setup the software.
./scripts/sw_setup.sh 16384 32768 false
./scripts/sw_setup.sh 16384 32768 true
return_code=$?

if [ $return_code -ne 0 ]; then
Expand Down
1 change: 1 addition & 0 deletions software/examples/capture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ int main(int argc, const char* argv[]) {

while (!setup_done) continue; // Wait for setup to be done.

std::cout << "The bandwidth statistics are approximated." << std::endl;
show_stats(thread_stats, &keep_running);

socket_thread.join();
Expand Down
1 change: 1 addition & 0 deletions software/examples/echo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ int main(int argc, const char* argv[]) {

while (!setup_done) continue; // Wait for setup to be done.

std::cout << "The bandwidth statistics are approximated." << std::endl;
show_stats(thread_stats, &keep_running);

for (auto& thread : threads) {
Expand Down
1 change: 1 addition & 0 deletions software/examples/echo_copy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ int main(int argc, const char* argv[]) {

while (!setup_done) continue; // Wait for setup to be done.

std::cout << "The bandwidth statistics are approximated." << std::endl;
show_stats(thread_stats, &keep_running);

for (auto& thread : threads) {
Expand Down
1 change: 1 addition & 0 deletions software/examples/echo_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ int main(int argc, const char* argv[]) {

while (!setup_done) continue; // Wait for setup to be done.

std::cout << "The bandwidth statistics are approximated." << std::endl;
show_stats(thread_stats, &keep_running);

for (auto& thread : threads) {
Expand Down
1 change: 1 addition & 0 deletions software/examples/echo_prefetch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ int main(int argc, const char* argv[]) {

while (!setup_done) continue; // Wait for setup to be done.

std::cout << "The bandwidth statistics are approximated." << std::endl;
show_stats(thread_stats, &keep_running);

for (auto& thread : threads) {
Expand Down
Loading