search for: my_lib

Displaying 15 results from an estimated 15 matches for "my_lib".

2012 Mar 22
0
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
...le help? > > I don't think this has anything to do with LLVM's IR-level exception system. It sounds to me like you just need a way to handle C++ exceptions inside of the C++ code and then rethrow so that the JIT's caller can do its thing. (Right?) Right. The call sequence is: my_lib(1) -> JIT_code -> C_thunk -> my_lib(2) The JIT code creates Functions that create C++ objects on their stacks (by using alloca instructions then calling a C thunk that calls the C++ object's constructor via placement new). If an exception is thrown in my_lib(2), then somewhere betwee...
2013 Jun 09
2
Minitest mock or stub methods
Hi I''m building a small library to use in my Rails app which interacts with a 3rd party API. It fetches artists and tracks. So I have: lib/my_lib.rb lib/my_lib/artist.rb lib/my_lib/track.rb To get an artist I do artist = MyLib::Artist.find("Oasis") Which returns an instance of Artist if it finds (via 3rd party API) it or nil otherwise. Then I can call artist.tracks which fetches all available tracks at the 3rd party and returns...
2020 May 27
2
OpenMP Error in Clang
Hello, I am getting the following error while trying to build a benchmark with a custom function pass: clang -Xclang -fopenmp=libomp -Xclang -load -Xclang my_lib.so file.c error: unknown argument: '-fopenmp=libomp' If I use this instead: clang -Xclang -fopenmp=libomp -Xclang -load -Xclang my_lib.so file.c I get the error: fatal error: 'omp.h' file not found I am not sure where the problem is, especially since I have used OpenMP appl...
2012 Mar 21
1
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
To recap, on Mar 14, 2012, I wrote: > My project has a C++ library that I want to allow the user to use via some programming language to be JIT'd to call functions in said library. For the sake of simplicity, assume the library has classes like: > > class item_iterator { > public: > virtual ~item_iterator(); > virtual bool next( item *result ) = 0; > }; >
2012 Mar 22
1
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
On Mar 20, 2012, at 7:38 PM, Paul J. Lucas wrote: > To recap, on Mar 14, 2012, I wrote: > >> My project has a C++ library that I want to allow the user to use via some programming language to be JIT'd to call functions in said library. For the sake of simplicity, assume the library has classes like: >> >> class item_iterator { >> public: >> virtual
2012 Mar 23
2
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
...I don't think this has anything to do with LLVM's IR-level exception system. It sounds to me like you just need a way to handle C++ exceptions inside of the C++ code and then rethrow so that the JIT's caller can do its thing. (Right?) > > Right. The call sequence is: > > my_lib(1) -> JIT_code -> C_thunk -> my_lib(2) > > The JIT code creates Functions that create C++ objects on their stacks (by using alloca instructions then calling a C thunk that calls the C++ object's constructor via placement new). If an exception is thrown in my_lib(2), then somewh...
2011 Mar 24
2
[LLVMdev] Instrumentation with liblto and gold
...e) for some load and store instructions. The functions exist in a library file. I found that the approach works for the example in the link: http://llvm.org/docs/GoldPlugin.html $ llvm-gcc -flto a.c -c -o a.o $ ar q a.a a.o $ llvm-gcc b.c -c -o b.o $ llvm-gcc -use-gold-plugin a.a b.o -L<path_to_my_lib> -l<my_lib> -o main I also found that I can compile large programs (apache and mysql) with gold plugin. Here is the command: $ export CC="llvm-gcc -use-gold-plugin"; export CXX="llvm-g++ -use-gold-plugin"; export RANLIB=/bin/true; export CFLAGS="-O4"; $ ./con...
2019 Mar 26
0
samba 4.10 searches wrong libs on cross-compile
...s # strict as the strictest OS we support, so adding this here # allows us to find problems on our development hosts faster. # It also results in faster load time. conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True) # MY_MODIFICATION ... my_libs = os.getenv(MY_LDFLAGS') conf.ADD_LDFLAGS(my_libs, testflags=False) # ... MY_MODIFICATION if not conf.CHECK_NEED_LC("-lc not needed"): conf.ADD_LDFLAGS('-lc', testflags=False) and in all the previous releases that worked fine. Since there have been othe...
2006 Jul 08
1
access to lib?
Do I need to do anything special to access classes in RAILS_ROOT/lib from a worker? Maybe: require File.dirname(__FILE__) + ''../my_lib.rb'' or does it do that automatically like a controller does? Also if I write a unit test for a worker that is accessing AR, is there anything special needed to be done to access fixtures etc to test it? Thanks -- Jim Morris, http://blog.wolfman.com
2011 Mar 24
0
[LLVMdev] Instrumentation with liblto and gold
.... > The functions exist in a library file. > > I found that the approach works for the example in the link: > http://llvm.org/docs/GoldPlugin.html > $ llvm-gcc -flto a.c -c -o a.o > $ ar q a.a a.o > $ llvm-gcc b.c -c -o b.o > $ llvm-gcc -use-gold-plugin a.a b.o -L<path_to_my_lib> -l<my_lib> -o main > > I also found that I can compile large programs (apache and mysql) with > gold plugin. > Here is the command: > $ export CC="llvm-gcc -use-gold-plugin"; export CXX="llvm-g++ > -use-gold-plugin"; export RANLIB=/bin/true; export...
2011 Mar 25
1
[LLVMdev] Instrumentation with liblto and gold
...n a library file. >> >> I found that the approach works for the example in the link: >> http://llvm.org/docs/GoldPlugin.html >> $ llvm-gcc -flto a.c -c -o a.o >> $ ar q a.a a.o >> $ llvm-gcc b.c -c -o b.o >> $ llvm-gcc -use-gold-plugin a.a b.o -L<path_to_my_lib> -l<my_lib> -o main >> >> I also found that I can compile large programs (apache and mysql) with >> gold plugin. >> Here is the command: >> $ export CC="llvm-gcc -use-gold-plugin"; export CXX="llvm-g++ >> -use-gold-plugin"; export RAN...
2006 Apr 28
1
lib directory cached?
I am testing my app on a shared host account on Site5. The app is in development mode and all changes for the most part take place immediately. The only exception are the classes that I have developed and placed in my lib/ directory. I can make a change to my class, run my app, have it behave in the previous manner, go to bed, come back the next morning, and the changes will have taken
2001 Jan 08
0
R-1.2.0: gdb doesn't find functions in shared lib
...ions. It either pretends to set break points but doesn't stop there or it only stops at the end of the function. R version R-1.2.0 gdb version GNU gdb 4.18 gcc version 2.95.2 Linux version SUSE 7.0 I tried to recompile without the O2 option, but to no avail. I also tried both R INSTALL <my_lib> and doing R SHLIB <my_file.c> and then manually loading the .so file. I would be glad to receive any hints -- Dr. Joerg Kindermann Knowledge Discovery Team GMD - German National Research Center for Information Technology - phone: +49 02241 14243...
2009 Mar 25
0
Rmpi - send/receive multiple objects to slaves
...,mpi.any.tag()) Once I have this figured out, I could then only send the upper/lower triangle, to halve the data being passed around, but one step at a time! Cheers, Nathan <code> n_slaves <- mpi.comm.size()-1 slave <- function() { # load my library in each slave library(my_lib) # Note the use of the tag for sent messages: # 1=ready_for_task, 2=done_task, 3=exiting # Note the use of the tag for received messages: # 1=task, 2=done_tasks junk <- 0 done <- 0 while (done != 1) { # Signal being ready to receive a new task...
2006 Jan 29
15
Reload the lib directory
Im writing a module in the lib directory. If I change the module, the changes are not visible to the application when i releod the web page (i am in the development evironment). I must restart the web server (WEBrick) and so i see the changes... but I lost more time. How can I reload the module in the dirictory lib, without reload WEBrick? Thanks so much --Reis -- Posted via