<hkaiser>
Smasher: you're missing one of those pesky action macros
<Smasher>
ahh the macros :)
<hkaiser>
or you're missing to specify the right cmake target dependencies
<Smasher>
well i have HPX_DEFINE_COMPONENT_ACTION() in my class declaration, HPX_REGISTER_ACTION_DECLARATION in the same header
<Smasher>
and in the cxx file i have HPX_REGISTER_COMPONENT and HPX_REGISTER_ACTION
<hkaiser>
Smasher: ok, do you actually link with the component?
<Smasher>
i cant link with that component
<Smasher>
[19:28:01] <Smasher> i cant provide the implementation of hpx_zfm_fingerprint_provider_server on this machine [19:28:19] <Smasher> it works only on pi
bikineev has quit [Remote host closed the connection]
bikineev has joined #ste||ar
<K-ballo>
?
<hkaiser>
so let the function be empty on the pi, the action type must be available, though
<Smasher>
hmmm
<Smasher>
you mean vise versa i guess
<Smasher>
on the pi i can have the real implementation
<hkaiser>
nod
<Smasher>
should i just put a dummy function for that on windows?
<hkaiser>
shouldn't that be the id of the component you want to call back into?
<Smasher>
hä
<Smasher>
i thought that's an id of the target component where the action should be executed
<hkaiser>
sure
<Smasher>
so i am all local
<hkaiser>
but find_here() does not refer to a component
eschnett has quit [Quit: eschnett]
aserio has quit [Ping timeout: 272 seconds]
<Smasher>
i am somehow tending to implement it like this if(this.id == null) { function() } else { action(id) }
<Smasher>
because i really dont understand how should i implement that
<hkaiser>
what?
<hkaiser>
again: first implement it without hpx
<hkaiser>
as if you were allocating your objects on the heap, use unique_ptr (or shared_ptr) to control the lifetime of those objects
<Smasher>
i wouldnt need an id then
<hkaiser>
once that works, replace new with new_/local_new and shared_ptr<T> either with id_type of client<T> or with a type which is derived from client_base
<Smasher>
sometimes i cannot think straight because i see only templates and namespaces
eschnett has joined #ste||ar
<aserio>
hkaiser: Did you tell Louis about Brant?
<hkaiser>
aserio: Steve? yes, I mentioned it to him
<aserio>
ok :)
<Smasher>
this is actually my first c / c++ project of that size... after years of java experience... sorry that i sometimes need explanations like im 5 :)
eschnett has quit [Read error: Connection reset by peer]
EverYoung has quit [Remote host closed the connection]
eschnett has joined #ste||ar
EverYoung has joined #ste||ar
denis_blank has joined #ste||ar
eschnett has quit [Read error: Connection reset by peer]
eschnett has joined #ste||ar
eschnett has quit [Client Quit]
RostamLog has joined #ste||ar
hkaiser has quit [Quit: bye]
aserio has quit [Ping timeout: 268 seconds]
aserio has joined #ste||ar
eschnett has joined #ste||ar
<heller__>
boost.outcome incoming!
<zao>
uh-oh
<jbjnr>
heller__:
<jbjnr>
oops
<heller__>
jbjnr: hm?
<jbjnr>
hold on
<jbjnr>
can't paste from my linux box into here....<grrr>
<jbjnr>
if I have a function in hpx::serialization that looks like this
<Smasher>
{what}: archive data bstream is too short: HPX(serialization_error)
aserio has joined #ste||ar
zbyerly_ has joined #ste||ar
aserio changed the topic of #ste||ar to: STE||AR: Systems Technology, Emergent Parallelism, and Algorithm Research | stellar.cct.lsu.edu | HPX: A cure for performance impaired parallel applications | github.com/STEllAR-GROUP/hpx | Buildbot: http://rostam.cct.lsu.edu/ | Log:
aserio changed the topic of #ste||ar to: STE||AR: Systems Technology, Emergent Parallelism, and Algorithm Research | stellar.cct.lsu.edu | HPX: A cure for performance impaired parallel applications | github.com/STEllAR-GROUP/hpx | Buildbot: http://rostam.cct.lsu.edu/ | Log: http://irc.cct.lsu.edu/
<aserio>
You are now all being watched :p
<Smasher>
:)
<jbjnr>
Smasher: that error means that when a parcel was decoded, it had incorrect data
<github>
hpx/master da5d22c Hartmut Kaiser: Turning assert into real exception
<hkaiser>
Smasher: ^^
<Smasher>
__arm__ seems to be defined with my cross compiler
<Smasher>
hkaiser ok rebuilding hpx
<hkaiser>
Smasher: since you're using different compilers for the ends of your communication pipe its very important to make sure all your integral types sent over the wire are actually fixed size (i.e. uint16_t or int64_t, and not 'short' or just 'int'
<hkaiser>
does arm have a different endianess as well?
<jbjnr>
arm isn't different endian - but by default, the arm compile will produce 32bit binarm8 which is a 64 bit processoraries even on
<jbjnr>
^binaries I meant to write
<jbjnr>
sorry, my trackpad is squiffy
<Smasher>
hkaiser what to use instdead of char?
<jbjnr>
char is ok
<hkaiser>
char is fine
<Smasher>
i am using char and a hm..
<jbjnr>
hm?
<Smasher>
:)
<jbjnr>
or hmmm....
<Smasher>
bitfile_size
<Smasher>
gotta look how i defined it
<Smasher>
const size_t bmp_file_size = 0x12076;
<Smasher>
size_t should be portable too
<jbjnr>
size_t will be 64/32
<Smasher>
oh
<jbjnr>
use uint32_t or similar
<jbjnr>
(just to play safe)
<Smasher>
okay, im rebuilding hpx now and will fix that value then
<Smasher>
type^
<Smasher>
meanwhile another topic: have anybody already used DTL with HPX ?
<hkaiser>
what's DTL?
<Smasher>
Database Template Library
<Smasher>
or can you recommend another library for database access which works well with hpx?
<hkaiser>
I have no experience with that, but I wouldn't expet problems as long as the library does not create its own threads
<jbjnr>
omg - I finally got mt serialization specialization to compile without my filthy hacks!
<Smasher>
hpx built - transferring to pi
<Smasher>
some serious joghurt munching meanwhile
eschnett has joined #ste||ar
akheir has quit [Remote host closed the connection]
<Smasher>
hkaiser can multi-inheritance cause that?
<Smasher>
hmm.. i dont think so
bikineev has quit [Remote host closed the connection]
EverYoun_ has joined #ste||ar
EverYoung has quit [Ping timeout: 246 seconds]
bikineev has joined #ste||ar
<Smasher>
c++filt cannot unmangle this name N3hpx10components6server23create_component_actionI35hpx_zfm_fingerprint_provider_serverJEEE
<K-ballo>
demangle
<Smasher>
^
<K-ballo>
I don't know what that J in there is.. you sure that's all?
<K-ballo>
even the Es seem unbalanced
EverYoun_ has quit [Remote host closed the connection]
EverYoung has joined #ste||ar
<hkaiser>
Smasher: did you see my message that I screwed up the first attempt?
<Smasher>
ah yes hkaiser
<hkaiser>
Smasher: ok, I think I know what's going on...
<hkaiser>
let me investigate
<Smasher>
ok im patient ;)
mcopik has joined #ste||ar
<hkaiser>
the create component actions are not registered by default, those are auto-registered
<hkaiser>
that means that they will be available only in binaries which use it
<hkaiser>
mcopik: hey
<hkaiser>
did they manage to get you to toronto?
<Smasher>
hkaiser well :) that's where we started
<Smasher>
"how to decouple components"
<hkaiser>
right
<hkaiser>
I had that solved somewhere, but don't remember where :/
Matombo has quit [Remote host closed the connection]
<hkaiser>
Smasher: as a workaround you could add code to the binary which currently does not create that component to force it to instantiate that action
<Smasher>
"the binary which currently does not create that component"
<mcopik>
hkaiser: hi
<mcopik>
it's a clusterfuck
<hkaiser>
just write a function which does a local_new<Component>, you don't have to actually call this function
<hkaiser>
mcopik: uhh
<hkaiser>
where are you now?
<mcopik>
I'm in a hotel in Frankfurt
<hkaiser>
:(
<mcopik>
I tried to rebook by an agent, no luck
<hkaiser>
what does the airline say?
<Smasher>
hkaiser i have to understand now who creates that component
<hkaiser>
Smasher: who should know if not you
<hkaiser>
the side calling new_, I guess
<Smasher>
this is the place where i call new_, right?
<hkaiser>
yes
<hkaiser>
so the other side needs that too
<Smasher>
the other side does nothing
<hkaiser>
but you don't have to execute the code, just have it compiled in
<hkaiser>
(and pray that the linker doesn't remove it ;)
<Smasher>
im instantiating a bz3Sevrer to link against it
<Smasher>
that was that dynamic loading issue
<mcopik>
hkaiser: I tried to rebook through a helpdesk by calling Air Canada and they told me that there is a possibility for a morning flight tomorrow but I can't take it because I don't have my checked-in luggage
<Smasher>
now adding a local new there
<mcopik>
and I don't have it because we were not allowed to pick it up
<hkaiser>
wouldn't they forward that automatically?
<hkaiser>
mcopik: ^^
<mcopik>
hkaiser: the guy on the phone told me that he's not able to modify booking because of that reason
<mcopik>
we all have a flight for tomorrow but it will arrive at 9 pm in Toronto
<mcopik>
so no presentation for me, I'll just participate in IWOCL
shoshijak has quit [Ping timeout: 240 seconds]
<hkaiser>
Smasher: it needs the zfm_fingerprint_provider_server
<hkaiser>
mcopik: if you tell Michael, he might be able to reoranize the agenda for you
<hkaiser>
reorganize
<hkaiser>
or is it just one day?
<hkaiser>
Smasher: as said, the easiest is to use the same binary (sans recompiled for the different platforms)
<Smasher>
hkaiser impossible
<hkaiser>
why?, #ifdef the code which is not needed/exected
<Smasher>
<Smasher> i cant provide the implementation of hpx_zfm_fingerprint_provider_server on this machine <Smasher> it works only on pi
<hkaiser>
you can safely #ifdef that code as it will never be executed, or add a #else assert() just in case
<Smasher>
with an #ifdef i already have the same code
<Smasher>
well almost
<hkaiser>
everuthing else will be a pain in the neck
<hkaiser>
well, you showed a 3 liner, that can't be all of your code
<Smasher>
hmmhm
<Smasher>
i'll upload more wait
<hkaiser>
no need
<hkaiser>
just make sure all of the code is compiled in, but avoid executing it
<mcopik>
hkaiser: yes, it's just one day. tomorrow is DHPCC (or however it's called), my presentation is at noon
<mcopik>
Wednesday and Tuesday is all OpenCL day
<hkaiser>
:(
<mcopik>
hkaiser: I'm terribly disappointed. I don't if the paper is supposed to appear in proceedings or not, the information was not clear there, but even if then I'm afraid they'll change their mind because no speaker has shown up
<hkaiser>
mcopik: nah, don't think so, just let Michael know that you got stuck
<mcopik>
hkaiser: I sent two emailes already to sycl@codeplay.com (also main workshop email) explaining the situation and apologizing
<hkaiser>
nod, that should do it
EverYoung has quit [Ping timeout: 272 seconds]
EverYoung has joined #ste||ar
<Smasher>
hkaiser back on track now... will try first to call hpx::components::local_new<hpx_zfm_fingerprint_provider_server>(); from my executable
<mcopik>
hkaiser: well, I can only hope I'll get to Toronto on tomorrow's evening
<Smasher>
and will see if this maybe helps
EverYoung has quit [Remote host closed the connection]
EverYoung has joined #ste||ar
bikineev has quit [Remote host closed the connection]