Skip to content

Instantly share code, notes, and snippets.

View bluescarni's full-sized avatar

Francesco Biscani bluescarni

  • European Space Agency
  • Germany
View GitHub Profile
diff --git a/src/step_callback.cpp b/src/step_callback.cpp
index c0fad146..b3cdc6e4 100644
--- a/src/step_callback.cpp
+++ b/src/step_callback.cpp
@@ -110,17 +110,17 @@ void swap(step_callback_impl<TA> &a, step_callback_impl<TA> &b) noexcept
}
// Explicit instantiations.
-template class step_callback_impl<taylor_adaptive<double>>;
+template class HEYOKA_DLL_PUBLIC step_callback_impl<taylor_adaptive<double>>;
Program received signal SIGSEGV, Segmentation fault.
0x00007fffe8a0ef9d in llvm::TargetPassConfig::addPass(llvm::Pass*, bool, bool) () from /home/yardbird/miniconda3/envs/heyoka/lib/python3.8/site-packages/llvmlite/binding/../../../../libLLVM-10.so
(gdb) bt
#0 0x00007fffe8a0ef9d in llvm::TargetPassConfig::addPass(llvm::Pass*, bool, bool) () from /home/yardbird/miniconda3/envs/heyoka/lib/python3.8/site-packages/llvmlite/binding/../../../../libLLVM-10.so
#1 0x00007fffe8a1250a in llvm::TargetPassConfig::addRegAssignmentOptimized() () from /home/yardbird/miniconda3/envs/heyoka/lib/python3.8/site-packages/llvmlite/binding/../../../../libLLVM-10.so
#2 0x00007fffe8a1273d in llvm::TargetPassConfig::addOptimizedRegAlloc() () from /home/yardbird/miniconda3/envs/heyoka/lib/python3.8/site-packages/llvmlite/binding/../../../../libLLVM-10.so
#3 0x00007fffe8a129cc in llvm::TargetPassConfig::addMachinePasses() () from /home/yardbird/miniconda3/envs/heyoka/lib/python3.8/site-packages/llvmlite/binding/../../../../libLLVM-1
0x00007ffff15618cc in llvm::TargetPassConfig::addPass(llvm::Pass*, bool, bool) () from /home/yardbird/miniconda3/envs/heyoka/bin/../lib/libLLVM-11.so
(gdb) bt
#0 0x00007ffff15618cc in llvm::TargetPassConfig::addPass(llvm::Pass*, bool, bool) () from /home/yardbird/miniconda3/envs/heyoka/bin/../lib/libLLVM-11.so
#1 0x00007ffff15645ca in llvm::TargetPassConfig::addRegAssignmentOptimized() () from /home/yardbird/miniconda3/envs/heyoka/bin/../lib/libLLVM-11.so
#2 0x00007ffff156497e in llvm::TargetPassConfig::addOptimizedRegAlloc() () from /home/yardbird/miniconda3/envs/heyoka/bin/../lib/libLLVM-11.so
#3 0x00007ffff1564f76 in llvm::TargetPassConfig::addMachinePasses() () from /home/yardbird/miniconda3/envs/heyoka/bin/../lib/libLLVM-11.so
#4 0x00007ffff12b08e2 in addPassesToGenerateCode(llvm::LLVMTargetMachine&, llvm::legacy::PassManagerBase&, bool, llvm::MachineModuleInfoWrapperPass&) () from /home/yardbird/miniconda3/envs/heyoka/bin/../lib/libLLVM-11.so
#5 0x00007ffff12b175a in llvm::LLVMTargetMachine::addPa
import matplotlib.pylab as plt
import numpy as np, heyoka as hey
from copy import deepcopy
from multiprocessing.pool import ThreadPool
pi = np.pi
nproc = 20
ninst = 50
n_ast = 25
Dr. Memory version 2.3.0 build 1 built on Feb 6 2020 06:07:09
Windows version: WinVer=102;Rel=1607;Build=14393;Edition=ServerDatacenter
Dr. Memory results for pid 508: "taylor_div.exe"
Application cmdline: "test\taylor_div.exe"
Recorded 118 suppression(s) from default c:\drmemory\bin64\suppress-default.txt
Error #1: UNINITIALIZED READ: reading register rax
# 0 heyoka.dll!llvm::DenseMap<>::grow
# 1 heyoka.dll!llvm::DenseMap<>::grow
# 2 heyoka.dll!llvm::DenseMap<>::grow
Dr. Memory version 2.3.0 build 1 built on Feb 6 2020 06:07:09
Windows version: WinVer=102;Rel=1607;Build=14393;Edition=ServerDatacenter
Dr. Memory results for pid 4796: "taylor_div.exe"
Application cmdline: "test\taylor_div.exe"
Recorded 118 suppression(s) from default c:\drmemory\bin64\suppress-default.txt
Error #1: UNINITIALIZED READ: reading register rax
# 0 heyoka.dll!llvm::DenseMap<>::grow
# 1 heyoka.dll!llvm::DenseMap<>::grow
# 2 heyoka.dll!llvm::DenseMap<>::grow
#ifndef PAGMO_DETAIL_CLING_REPR_HPP
#define PAGMO_DETAIL_CLING_REPR_HPP
#if defined(__CLING__)
#if __has_include(<nlohmann/json.hpp>)
#include <sstream>
#include <nlohmann/json.hpp>
class dask_island:
def run_evolve(self, algo, pop):
ret = client.submit(algo.evolve, pop)
return algo, ret.result()
89045: find library=libOpenCL.so.1 [0]; searching
89045: search cache=/etc/ld.so.cache
89045: trying file=/usr/lib64/OpenCL/vendors/ocl-icd/libOpenCL.so.1
89045:
89045: find library=libdl.so.2 [0]; searching
89045: search cache=/etc/ld.so.cache
89045: trying file=/lib64/libdl.so.2
89045:
89045: find library=libc.so.6 [0]; searching
89045: search cache=/etc/ld.so.cache
#include <algorithm>
unsigned long long
gcd(unsigned long long x, unsigned long long y)
{
if (x == 0) {
return y;
}
if (y == 0) {
return x;