Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Make converter statically linked, instead of dynamically.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmatters committed Apr 14, 2022
1 parent bff3e2e commit 9e1e973
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ add_dependencies(_pynethack util) # For pm.h.

# ttyrec converter library
add_library(
converter SHARED ${CMAKE_CURRENT_SOURCE_DIR}/third_party/converter/converter.c
converter STATIC ${CMAKE_CURRENT_SOURCE_DIR}/third_party/converter/converter.c
${CMAKE_CURRENT_SOURCE_DIR}/third_party/converter/stripgfx.c)
target_include_directories(
converter PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/third_party/libtmt
Expand Down
2 changes: 1 addition & 1 deletion nle/tests/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def convert_n_times(n):

memory_list = memory_usage((convert_n_times, (100,), {}))
# After warmup the last few iterations should be constant memory
memory_array = np.array(memory_list[3:])
memory_array = np.array(memory_list[5:])
memory_change = (memory_array / memory_array[0]) - 1
assert max(memory_change) < 0.001 # 0.1 per cent

Expand Down

0 comments on commit 9e1e973

Please sign in to comment.