From 726a9345fffac8c152cc9f36e1a3b0d5b437f3e7 Mon Sep 17 00:00:00 2001 From: doinachiroiu Date: Thu, 20 Aug 2020 12:37:34 +0000 Subject: [PATCH] Enable namespaces --- oss-internship-2020/pffft/README.md | 8 +++++++- oss-internship-2020/pffft/main_pffft_sandboxed.cc | 9 ++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/oss-internship-2020/pffft/README.md b/oss-internship-2020/pffft/README.md index 52facf3..b3ceef8 100644 --- a/oss-internship-2020/pffft/README.md +++ b/oss-internship-2020/pffft/README.md @@ -64,4 +64,10 @@ In the end, the performance of PFFFT library it is outlined by the output.* uintptr_t instead of PFFFT_Setup Solution: using "sapi::v::RemotePtr" instead of "sapi::v::GenericPtr" - to access the memory of object s \ No newline at end of file + to access the memory of object s + + - [Unresolved] compiling bug: "No spave left on device" + The building process creates some `embed` files that use lots of + memory, trying to write them on /tmp. + + Temporary solution: clean /tmp directory by `sudo rm -rf /tmp/*`. \ No newline at end of file diff --git a/oss-internship-2020/pffft/main_pffft_sandboxed.cc b/oss-internship-2020/pffft/main_pffft_sandboxed.cc index 662b949..b9a5a90 100644 --- a/oss-internship-2020/pffft/main_pffft_sandboxed.cc +++ b/oss-internship-2020/pffft/main_pffft_sandboxed.cc @@ -34,7 +34,6 @@ class pffftSapiSandbox : public pffftSandbox { __NR_close, __NR_getrusage, }) - .DisableNamespaces() .BuildOrDie(); } }; @@ -83,12 +82,12 @@ int main(int argc, char* argv[]) { 16384, 32768, 256 * 1024, 1024 * 1024, -1}; int i; - VLOG(1) << "Initializing sandbox...\n"; + LOG(INFO) << "Initializing sandbox...\n"; pffftSapiSandbox sandbox; sandbox.Init().IgnoreError(); - VLOG(1) << "Initialization: " << sandbox.Init().ToString().c_str() << "\n"; + LOG(INFO) << "Initialization: " << sandbox.Init().ToString().c_str() << "\n"; pffftApi api(&sandbox); @@ -174,7 +173,7 @@ int main(int argc, char* argv[]) { sapi::StatusOr s = api.pffft_new_setup(N, cplx ? PFFFT_COMPLEX : PFFFT_REAL); - VLOG(1) << "Setup status is: " << s.status().ToString().c_str() << "\n"; + LOG(INFO) << "Setup status is: " << s.status().ToString().c_str() << "\n"; if (s.ok()) { sapi::v::RemotePtr s_reg(s.value()); @@ -197,7 +196,7 @@ int main(int argc, char* argv[]) { show_output("PFFFT", N, cplx, flops, t0, t1, max_iter); } - VLOG(1) << "N = " << N << " SUCCESSFULLY\n\n"; + LOG(INFO) << "N = " << N << " SUCCESSFULLY\n\n"; } }