Skip to content

Tmp: Activate Debug and TraceRefs for pyextdataframe.so #413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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 exaudfclient/base/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ build:java --define java=true --action_env=JAVA_PREFIX
build:python --define python=true --action_env=PYTHON2_SYSPATH --action_env=PYTHON2_PREFIX --action_env=PYTHON2_VERSION --action_env=NUMPY_PREFIX --action_env=PYTHON3_SYSPATH --action_env=PYTHON3_PREFIX --action_env=PYTHON3_VERSION
build:fast-binary-py3 --copt='-DCUSTOM_LIBEXAUDFLIB_PATH="/exaudf/libexaudflib_complete.so"' --define binary_type=fast_binary //:exaudfclient_py3
build:slow-wrapper-py3 --define binary_type=slow_wrapper //:exaudfclient_py3
build:valgrind-wrapper-py3 --config=slow-wrapper-py3 --define wrapper_type=valgrind_wrapper //:exaudfclient_py3
build:static-binary-py3 //:exaudfclient_py3_static
build:test-binaries-py3 --config=static-binary-py3 --config=slow-wrapper-py3
build:verbose --copt='-v' --subcommands --verbose_failures --announce_rc
Expand Down
2 changes: 1 addition & 1 deletion exaudfclient/base/create_binary_wrapper_valgrind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ touch "$CLIENT_WRAPPER"
{
cat "$WRAPPER_TEMPLATE"
echo
echo valgrind "./$(basename "$CLIENT_BINARY")" '$*'
echo valgrind --leak-check=full "./$(basename "$CLIENT_BINARY")" '$*'
} >> "$CLIENT_WRAPPER"
2 changes: 1 addition & 1 deletion exaudfclient/base/exaudflib/impl/socket_high_level.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ bool exaudflib::socket_high_level::send_init(zmq::socket_t &socket, const std::s
#ifdef SWIGVM_LOG_CLIENT
std::cerr << "W-UDF-CL-LIB-1011: Failed to set nofile limit" << std::endl;
#else
throw SWIGVMContainers::SWIGVM::exception("F-UDF-CL-LIB-1012: Failed to set nofile limit");
std::cerr << "W-UDF-CL-LIB-1011: Failed to set nofile limit" << std::endl;
#endif
d.rlim_cur = d.rlim_max = 32768;
if (setrlimit(RLIMIT_NPROC, &d) != 0)
Expand Down
9 changes: 8 additions & 1 deletion exaudfclient/base/python/python3/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ genrule(

cc_library(
name = "exascript_python",
#copts = ["-DPy_TRACE_REFS=1", "-DPy_DEBUG=1"],
copts = ["-DPy_DEBUG=1"],
srcs = [":filter_swig_code_exascript_python_cc",":filter_swig_code_exascript_python_h"],
hdrs = [":filter_swig_code_exascript_python_h"],
deps = ["@python3//:python3","//exaudflib:exaudflib-deps","//exaudflib:header"],
Expand All @@ -88,7 +90,9 @@ cc_library(
cc_library(
name = "pythoncontainer",
srcs = ["//python:pythoncontainer.cc", ":dummy.h"],
data = [":extend_exascript_python_preset_py"],
data = [":extend_exascript_python_preset_py"],
#copts = ["-DPy_TRACE_REFS=1", "-DPy_DEBUG=1"],
copts = ["-DPy_DEBUG=1"],
hdrs = [":exascript_python_int", ":filter_swig_code_exascript_python_h"],
include_prefix = ".",
deps = ["@python3//:python3",":exascript_python","//exaudflib:header",
Expand All @@ -100,13 +104,16 @@ cc_library(
genrule(
name = "dummy",
cmd = 'touch "$@"',

outs = ["dummy.h"],
srcs = [":pyextdataframe.so"],
)

cc_binary(
name = "pyextdataframe.so",
linkshared = 1,
#copts = ["-DPy_TRACE_REFS=1", "-DPy_DEBUG=1"],
copts = ["-DPy_DEBUG=1"],
srcs = [":python_ext_dataframe.cc"],
deps = ["@python3//:python3","@numpy//:numpy",
"//exaudflib:header", "//:debug_message_h"],
Expand Down
Loading
Loading