hkaiser 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://irclog.cct.lsu.edu/ | GSoC2018: https://wp.me/p4pxJf-k1
kisaacs has joined #ste||ar
kisaacs has quit [Ping timeout: 245 seconds]
nikunj has quit [Quit: Leaving]
kisaacs has joined #ste||ar
kisaacs has quit [Ping timeout: 264 seconds]
twwright_ has joined #ste||ar
twwright has quit [Ping timeout: 264 seconds]
twwright_ is now known as twwright
kisaacs has joined #ste||ar
hkaiser has quit [Quit: bye]
eschnett has joined #ste||ar
kisaacs has quit [Ping timeout: 252 seconds]
kisaacs has joined #ste||ar
mcopik has quit [Ping timeout: 245 seconds]
kisaacs has quit [Ping timeout: 252 seconds]
K-ballo has quit [Quit: K-ballo]
parsa has joined #ste||ar
kisaacs has joined #ste||ar
nanashi55 has quit [Ping timeout: 260 seconds]
nanashi55 has joined #ste||ar
kisaacs has quit [Ping timeout: 248 seconds]
parsa has quit [Quit: Zzzzzzzzzzzz]
kisaacs has joined #ste||ar
kisaacs has quit [Ping timeout: 264 seconds]
jakub_golinowski has joined #ste||ar
jaafar_ has quit [Ping timeout: 248 seconds]
<jbjnr__> who broke hpx?
<jbjnr__> make[3]: *** No rule to make target 'lib/libhpx.so.1.2.0', needed by 'bin/contains_test_test'. Stop.
<jbjnr__> etc etc for every binary
<github> [hpx] msimberg opened pull request #3336: WIP: Only run docker push on master on CircleCI (master...circleci-docker-push-master) https://git.io/vhL1Y
mcopik has joined #ste||ar
twwright_ has joined #ste||ar
twwright has quit [Ping timeout: 264 seconds]
twwright_ is now known as twwright
<M-ms> jbjnr__: huh, still broken? master is broken but not that broken, rostam and pycicle do at least successfully compile everything
<jbjnr__> no. it was a misconfigured thingy at my end. building ok now
<jbjnr__> sorry M-ms for false alarm
<M-ms> ok, good
circleci-bot has joined #ste||ar
<circleci-bot> Success: msimberg's build (#18363; push) in STEllAR-GROUP/hpx (pull/3336) -- https://circleci.com/gh/STEllAR-GROUP/hpx/18363?utm_campaign=chatroom-integration&amp;utm_medium=referral&amp;utm_source=irc
circleci-bot has quit [Client Quit]
jbjnr__ has quit [Ping timeout: 245 seconds]
jbjnr has joined #ste||ar
<jbjnr> anyone been making changes that would break run_as_hpx_thread_exceptions_3304_test_exe
<jbjnr> seems to be hanging in that test on daint and the timeout isn't killing it like it should
<jbjnr> bloody hpxrun.py
hkaiser has joined #ste||ar
kisaacs has joined #ste||ar
kisaacs has quit [Ping timeout: 256 seconds]
<github> [hpx] hkaiser pushed 1 new commit to master: https://git.io/vhLAV
<github> hpx/master bdd1753 Hartmut Kaiser: Merge pull request #3334 from STEllAR-GROUP/init_logging_sequencing...
<github> [hpx] hkaiser deleted init_logging_sequencing at c55f1ab: https://git.io/vhLAw
<M-ms> jbjnr: with ^ merged things should be smoother again for pycicle, so wait and see?
<M-ms> thanks hkaiser for the fix
<M-ms> has anyone been able to reproduce the tcmalloc error that was showing up with gcc 7 and 8 before? (will most likely come up again on rostam now)
<jbjnr> I think I screwed up and pycicle wasn't picking up the right settings. I'm about to restart it and do a force build to see if things time out again
K-ballo has joined #ste||ar
kisaacs has joined #ste||ar
hkaiser has quit [Quit: bye]
kisaacs has quit [Ping timeout: 240 seconds]
mcopik has quit [Ping timeout: 260 seconds]
kisaacs has joined #ste||ar
mcopik has joined #ste||ar
kisaacs has quit [Ping timeout: 260 seconds]
zura has joined #ste||ar
aserio has joined #ste||ar
hkaiser has joined #ste||ar
mcopik has quit [Ping timeout: 260 seconds]
<hkaiser> jbjnr: ready whenever you are
<jbjnr> hkaiser: want to try https://appear.in/stellar-group
<hkaiser> jbjnr: it can't find my mic/camera
<jbjnr> pants
<hkaiser> hold on
kisaacs has joined #ste||ar
<jbjnr> skype is broken for me, but hangouts does work again if you can bear it
mcopik has joined #ste||ar
jakub_golinowski has quit [Ping timeout: 265 seconds]
anushi has quit [Ping timeout: 245 seconds]
jakub_golinowski has joined #ste||ar
<github> [hpx] msimberg closed pull request #3330: Rename resource_partitioner test to avoid conflicts with pseudodependencies (master...rename-rp-test) https://git.io/vhk8E
zura has quit [Ping timeout: 268 seconds]
eschnett has quit [Quit: eschnett]
<jakub_golinowski> M-ms, yt?
mcopik has quit [Ping timeout: 245 seconds]
mcopik has joined #ste||ar
galabc has joined #ste||ar
<M-ms> jakub_golinowski: yep, here
<jakub_golinowski> I was diving in the opecv parallelism today. I think now I have a bit better idea of what is going on. Interestingly the pthreads default parallelism was added and when there is no framework defined they have their own small implementation of parallelism
<jakub_golinowski> And this is what the mandelbrot opencv example was using when I run it on my laptop before
<jakub_golinowski> Now according to your previous suggestions I want to try out with TBB because I need to rebuild opencv anyway
<jakub_golinowski> I wanted to use tbb from ubuntu package for convenience but opencv won't build in debug mode with tbb from package since it is in release mode
<jakub_golinowski> I found some solution that suggests to change the value of CMakecache.txt
<jakub_golinowski> but it does not seem very clear
<jakub_golinowski> do you use this work-around or do you build tbb from sources in debug mode?
<jakub_golinowski> *by clear I mean clean in terms of good practices
<M-ms> ok, I admit to not having built tbb myself, but it should (ha) be straightforward to it yourself
<M-ms> I will give it a try as well, it's yet another package to build but you should only need to do it once
<M-ms> I would try to avoid changing values in CMakeCache.txt, sounds like asking for trouble
<jakub_golinowski> yes, this was also my impression that it is not a very good idea to tinker with CMakeCache
mcopik has quit [Ping timeout: 245 seconds]
<M-ms> apparently I have built tbb before... I'll try it again and let me know if it's giving you difficulties
mcopik has joined #ste||ar
<M-ms> did you manage to already enable tbb in opencv in release mode?
<jakub_golinowski> i did not try that
zura has joined #ste||ar
<jakub_golinowski> M-ms, I am trying this right now. I downloaded tbb 2018_U3 release but I am not sure how to specify the paths to it
<jakub_golinowski> when runnunkg cmake for opencv
eschnett has joined #ste||ar
anushi has joined #ste||ar
<jakub_golinowski> M-ms, ok build finished and my hpx_io_pool app worked with this version of opencv
<jakub_golinowski> opencv reports correct parallel framework:
<jakub_golinowski> Parallel framework: TBB (ver 4.4 interface 9002)
<jakub_golinowski> but as I am developing within the opencv I am still interested in building it in debug mode
<M-ms> jakub_golinowski: -DBUILD_TBB might be your friend, I would think that option means you don't have to worry about building tbb in the correct mode
<parsa[w]> diehlpk: ping
<diehlpk> Yes
<parsa[w]> diehlpk: see pm
<diehlpk> We had a second interview at heise online
<github> [hpx] hkaiser created global_object_destruction (+1 new commit): https://git.io/vhtR4
<github> hpx/global_object_destruction fe14fde Hartmut Kaiser: Safeguard HPX against destruction in global contexts...
<hkaiser> diehlpk: nice!
<diehlpk> hkaiser, aserio I will add it to our website later
<hkaiser> nicde
<hkaiser> nice
<jakub_golinowski> M-ms, thanks for the hint
<jakub_golinowski> M-ms, I have a question about cmake
<jakub_golinowski> Up to now I was using add_hpx_executable with the opencv apps and everythin was nice and running. Now I want to have an opencv app that is not using hpx explicitly
mcopik has quit [Ping timeout: 245 seconds]
<jakub_golinowski> when I use standard add_executable() the opencv is complaining about lack of C++11
nikunj has joined #ste||ar
<jakub_golinowski> So I guess the add_hpx_executable is somehow preventing that but I do not know exactly where
<jakub_golinowski> well Ok
<jakub_golinowski> set (CMAKE_CXX_STANDARD 11) did the trick
kisaacs has quit [Ping timeout: 252 seconds]
kisaacs has joined #ste||ar
mcopik has joined #ste||ar
<anushi> Hi
zura has quit [Quit: Leaving]
<M-ms> jakub_golinowski: yep, add_hpx_executable takes care of that for you
<M-ms> You'll have to be careful later when adding hpx to opencv that you use the same standard, you might want to recompile with c++11 and stick to that if you didn't already change it
<jakub_golinowski> M-ms, you mean recompile HPX?
<jakub_golinowski> btw now I am in the difficult stage -> I am trying to add HPX as the dependecy to opencv but it is not all plain sailin
<M-ms> Yeah, exactly
<jakub_golinowski> currently I am going through all the cmakes in opencv
jaafar_ has joined #ste||ar
<jakub_golinowski> in the CMakeLists.txt in the root of opencv the have all this build options
<jakub_golinowski> For example:
<jakub_golinowski> OCV_OPTION(WITH_TBB "Include Intel TBB support" OFF IF (NOT IOS AND NOT WINRT) )
<M-ms> Mmh, I know...
<jakub_golinowski> adn then suddenly
<jakub_golinowski> they use IF HAVE_TBB THEN "TBB (ver ${TBB_VERSION_MAJOR}.${TBB_VERSION_MINOR} interface ${TBB_INTERFACE_VERSION})"
<jakub_golinowski> my point is that HAVE_TBB seems to be not defined anywhere'
<M-ms> You can either try hpx_setup_target on opencv targets or add $HPX_LIBRARIES to some opencv variable
<jakub_golinowski> when I searched the whole repo it has only one occurance
<jakub_golinowski> no it is not true
<jakub_golinowski> it is used in src files as #define but I cannot find where it is declared
<M-ms> Just a minute
<jakub_golinowski> So my plan was to add find_package(HPX REQUIRED) (of course when -DWITH_HPX=ON is passed)
<jakub_golinowski> hmm
<jakub_golinowski> I think that a header file is generated from this config
<jakub_golinowski> and this is the place where all the HAVE_... defines are defined
<M-ms> so the HAVE_TBB may be generated by some cmake code that transforms WITH_TBB
<M-ms> ok, that seems to be it then
<jakub_golinowski> So I wanted to find this code
<jakub_golinowski> but I can also rebuild it and see if HAVE_HPX is defined
<M-ms> and btw, you will never like cmake but you will learn to deal with it...
<M-ms> will have dinner now, but leave your questions here
<jakub_golinowski> ok, thanks!
aserio has quit [Ping timeout: 276 seconds]
nikunj97 has joined #ste||ar
nikunj has quit [Ping timeout: 260 seconds]
nikunj97 has quit [Ping timeout: 245 seconds]
nikunj has joined #ste||ar
<M-ms> so jakub_golinowski I will be semi-unreachable until sunday (might have internet shortly tomorrow afternoon)
<jakub_golinowski> M-ms, ok I think I am done with the HAVE_HPX business in a sense that I know how to translate the -DWITH_HPX=ON to the #define HAVE_HPX in
<jakub_golinowski> M-ms, so maybe just one important Q
<jakub_golinowski> now I am at the stage that I should make sure that the opencv app can do stuff like
<jakub_golinowski> #include <hpx/...>
<M-ms> cmake can be a pain sometimes, so don't worry too much if you can't find the best way to do something with it right away
<jakub_golinowski> so far I was using add_hpx_executable
<jakub_golinowski> is there a standard way to deal with libraries?
<M-ms> sure
<jakub_golinowski> I found in the docs
<jakub_golinowski> hpx_setup_target(target)
<M-ms> yeah, hpx_setup_target is I guess the official way of doing it
<jakub_golinowski> for the TBB for example the key commands I guess are:
<jakub_golinowski> add_library(tbb INTERFACE)
<jakub_golinowski> target_link_libraries(tbb INTERFACE TBB::tbb)
<M-ms> but opencv might have some variables where they keep their dependencies/includes etc and then it might be easier to use HPX_LIBRARIES and HPX_INCLUDE_DIRS (or DIRECTORIES, don't remember)
<M-ms> yes, and something more to add tbb as a dependency to opencv itself I think
<jakub_golinowski> like this: list(APPEND extra_libs tbb)
<jakub_golinowski> ?
<M-ms> for hpx you should not even need an add_library, I think that is for the case when tbb is built by opencv
<M-ms> mmh, yes, looks reasonable
<M-ms> I guess that's from the opencv cmake=
<M-ms> ?
<jakub_golinowski> I am going over the various CMakeLists.txt
<jakub_golinowski> in the opencv repository to make sense out of it
<M-ms> and probably extra_libs is at some point used for target_link_libraries(opencv extra_libs) or something like that
<jakub_golinowski> so actually:
<jakub_golinowski> ocv_create_module(${extra_libs})
<M-ms> all right, I have to go, good luck with cmake
parsa has joined #ste||ar
<jakub_golinowski> bye bye
parsa has quit [Client Quit]
hkaiser has quit [Quit: bye]
<diehlpk> jakub_golinowski, I am available for 30 minutes
<jakub_golinowski> diehlpk, thank you very much
<jakub_golinowski> I am trying to make the opencv work with hpx as a dependecy
<diehlpk> Ok
<jakub_golinowski> I already parse the build argument
<jakub_golinowski> -DWITH_HPX=ON
<jakub_golinowski> and now in the same cmake in which other parallel frameworks are initialized I try to initialize hpx
<jakub_golinowski> (not sure if initilize is a correct phrasing)
<diehlpk> Can you paste your cmakelists.txt to pastebin
<jakub_golinowski> ok well
<diehlpk> Or somewhere else
<jakub_golinowski> this is a lot
<diehlpk> or provide me the github link
<jakub_golinowski> let me commit to my fork of opencv
<diehlpk> Ok, this would be helpful
kisaacs has quit [Ping timeout: 252 seconds]
<jakub_golinowski> it is on the branch hpx_backend
<diehlpk> Ok, in the main cmake?
<jakub_golinowski> I recommend you have a look at my commit
<jakub_golinowski> then it is more convenient to see everything in one place
<diehlpk> Ok, what is the issue?
<jakub_golinowski> so in the cmake/OpenCVFindLibsPerf.cmake
<jakub_golinowski> I am not sure what should I do - what is there right now is more or less a guess
mcopik has quit [Ping timeout: 252 seconds]
<jakub_golinowski> hmm I think it might have worked
<jakub_golinowski> because when building I got the errors about hpx
<diehlpk> Ok, I think you have to add the hpxlib too
<jakub_golinowski> I think it might be c++ version mismatch
<jakub_golinowski> hpxlib?
<diehlpk> Something like this link_directories(${HPX_LIBRARY_DIR})
<diehlpk> jakub_golinowski, Can you copy your error message to pastebin
nanashi55 has quit [Ping timeout: 245 seconds]
<jakub_golinowski> right awat
<diehlpk> which gcc are you using?
<jakub_golinowski> this was build from the IDE so I am not sure what was being built exactly, now I launched the build from console
<K-ballo> is that nvcc?
<diehlpk> and which std?
<diehlpk> K-ballo, No nvcc
<K-ballo> ah, no, this is old 11 constexpr rules
<jakub_golinowski> -- C++ Compiler: /usr/bin/c++ (ver 5.4.0)
<diehlpk> He tries to compile opencv with hpx support
<jakub_golinowski> so my guess it is that opencv enforces c++11
<K-ballo> something is odd, if c++11 were enforced we would not have constexpr there
<jakub_golinowski> and as M-ms suggested I should recompile hpx
<K-ballo> maybe you changed standards after having already ran the feature tests?
nanashi55 has joined #ste||ar
<jakub_golinowski> what are feature tests?
<K-ballo> the tests that we run during cmake configuration to see which features are available
<K-ballo> if you first configure the project for 14 and then later change it for 11 it's possible we retain the original results
<jakub_golinowski> hmm
<jakub_golinowski> so actually I do not think I was changing something by myself
<K-ballo> did you make the switch on a clean build directory?
<jakub_golinowski> switch?
<jakub_golinowski> I have the directory ~/hpx_repo/
<jakub_golinowski> with of course hpx master
<jakub_golinowski> then within I have ~/hpx_repo/build/debug
<jakub_golinowski> and within that directory I built the hpx with mostly default config
<K-ballo> I'm getting lost, are you building hpx or not?
<jakub_golinowski> Now I am building opencv
<diehlpk> Which c++ standard are you using?
<K-ballo> and you configured hpx for C++14 when you built it, but are now requesting C++11?
<diehlpk> K-ballo, He is the gsoc student who tries to integrate hpx into opencv
<jakub_golinowski> diehlpk, do you mean which C++ standard I am using now when trying to build opencv?
<diehlpk> as an additional parallelization
<diehlpk> Yes
<K-ballo> C++11, based on the error message
<K-ballo> but HPX has been configured for C++14
<jakub_golinowski> K-ballo, I am not sure to which version of standard I chose when building HPX :(
<diehlpk> So build opencv with c*+14 too
<K-ballo> jakub_golinowski: well, at least C++14, judging by the error messages
<K-ballo> you'll have to build both using the same standard, whichever you choose
<jakub_golinowski> Is there a way to check now with which standard HPX was built?
<jakub_golinowski> I do not see it in --hpx:dump-config
<K-ballo> yes, the cmake cache would show, as well as the config/defines.hpp
hkaiser has joined #ste||ar
<K-ballo> mmh, config/defines.hpp does not list it explicitly
aserio has joined #ste||ar
<K-ballo> what's the default for your compiler, jakub_golinowski?
<jakub_golinowski> I see entries like this
<jakub_golinowski> HPX_WITH_CXX14_CONSTEXPR:INTERNAL=TRUE
<K-ballo> yeah, as I said at least 14
<jakub_golinowski> in the CMakeCache of the hpx
<K-ballo> IIRC newer gccs default to 14? I haven't used a default in ages
<jakub_golinowski> hmm
<jakub_golinowski> jakub@T470p:~/opencv_repo/build/debug$ g++ -dM -E -x c++ /dev/null | grep -F __cplusplus
<jakub_golinowski> #define __cplusplus 199711L
<jakub_golinowski> is this how one checks it?
<jakub_golinowski> that would be very old standard
<diehlpk> jakub_golinowski, OpenCV > 3.x needs at least cpp14
<jakub_golinowski> ok, so I wonder why it apparently defaults to sth else
<diehlpk> For GCC 5.4 the default C++ standard is C++98 with GNU extensions
<diehlpk> It is due to your compiler
<diehlpk> default for gcc 5.4 is c++98
<jakub_golinowski> hmm OK
<diehlpk> default standard in 7.1 is C++14 with GNU extension
<diehlpk> Only since 7.1 the default is c++14
<diehlpk> you have to add the standard to the cmake_cpp_flags
<jakub_golinowski> like -DCMAKE_CPP_FLAGS=C++14?
<diehlpk> No, something like
<diehlpk> export CFLAGS=-ggdb
<diehlpk> export CXXFLAGS=-ggdb
<diehlpk> cmake will append it in this case
<diehlpk> -std=c++14
<diehlpk> Your suggestion may override existing flags
<jakub_golinowski> now I am confused
<jakub_golinowski> export CXXFLAGS=-ggdb why ggdb>
<jakub_golinowski> ?
<diehlpk> Was just copy paste for the example
<diehlpk> remove -ggdb with -std=c++14
<diehlpk> And do not forget to rm the CMakeCache.txt
<K-ballo> except not for CFLAGS
<diehlpk> Something like
<K-ballo> CFLAGS=-std=c++14 will result in errors if there's a target with C linkage
* K-ballo has been there...
<diehlpk> Yes
<diehlpk> only do it for CXXFlags, sorry
<jakub_golinowski> Ok I started the build
<diehlpk> At lest this error should vanish ;)
<jakub_golinowski> well
<jakub_golinowski> still exactly the same error
<diehlpk> can you do make VERBOSE=1
<diehlpk> and chech if the standard is added to the command line options
kisaacs has joined #ste||ar
<diehlpk> *check
mcopik has joined #ste||ar
nikunj97 has joined #ste||ar
<jakub_golinowski> I think it is
kisaacs has quit [Ping timeout: 256 seconds]
nikunj has quit [Ping timeout: 252 seconds]
kisaacs has joined #ste||ar
<diehlpk> jakub_golinowski, I cna not seen any error in the pastbin
<jakub_golinowski> diehlpk, it is just a part of the cmake config output
<diehlpk> Ok, have you deleted the CMakeCache.txt?
<jakub_golinowski> and the C++ flags contain -std=c++14
<diehlpk> Best is too delete the complete build folder and redo all
<jakub_golinowski> yes I always delete all files in the directory and start from scratch
<diehlpk> Delete the folder and try again
<jakub_golinowski> ok
<jakub_golinowski> unfortunately the error is still the same
<diehlpk> Ok, but hpx is compiled with cpp14
<K-ballo> the other thing you are building must still be picking an old installation of hpx
<K-ballo> no, wait.. that was not the problem
<K-ballo> the other thing is compiling in C++11 mode (against a C++14 hpx), that was the problem
<diehlpk> K-ballo, No, also with C++14 he get the same error for opencv
<K-ballo> has the error changed?
<K-ballo> the error message I saw was due to opencv being built in C++11 mode against an HPX configured for C++14 (or newer)
<diehlpk> jakub_golinowski, Can you post the error message when you build opencv with C++14
<jakub_golinowski> ok
<jakub_golinowski> but disturbingly it seems to be the same
<jakub_golinowski> (also it is longer but I just pasted firs errors)
<hkaiser> diehlpk: see pm, pls
<K-ballo> that error message still shows something being built in C++11 mode
<K-ballo> see how the function is declared as "HPX_CXX14_CONSTEXPR void reset()" but the error message refers to a const qualified function
<K-ballo> that was a C++11 rule, dropped in C++14
<jakub_golinowski> but what is bugging me
<jakub_golinowski> since the hpx is already built then why do I see the build errors in the first place?
<K-ballo> you are seeing a header being parsed
<jakub_golinowski> because these are from headers
<jakub_golinowski> ?
<jakub_golinowski> ah yea
<K-ballo> what's that warning about precompiled headers being invalid?
<K-ballo> are you using precompiled headers for opencv?
<jakub_golinowski> indeed this option is set
<jakub_golinowski> -- Precompiled headers: YES
<K-ballo> did you do a clean opencv build?
<jakub_golinowski> what do you mean by clean?
<K-ballo> from scratch, not carrying around leftovers from previous builds
<K-ballo> that warning makes me question whether you are actually still compiling for C++11, or if you changed that and yet are still reparsing some stale precompiled headers or something
<jakub_golinowski> I deleted the directory
<jakub_golinowski> and created it again
<K-ballo> ok, and setting flags for C++14 presumably ?
<jakub_golinowski> by the export
<K-ballo> does opencv respect the export?
<jakub_golinowski> and then -std=c++14 is listed in cmake messages
<diehlpk> K-ballo, i think that cmake on linux respect export to env
<jakub_golinowski> I am still thinking that the error might be caused by the wrong cmake configuration
<K-ballo> cmake respects CXXFLAGS everywhere, as long as no explicit toolchain is specified
<K-ballo> but the project might override it, projects are quite bad at handling flags
<K-ballo> people tend to bundle their own requirements as users with the requirements of the project, with those of the toolchain
<jakub_golinowski> ok here is the whole process
<diehlpk> jakub_golinowski, Could you use ccmake and check if the flad is added there?
<jakub_golinowski> maybe I do sth stupid at some point
<diehlpk> $CXXFLAGS
<diehlpk> -std=c++14: command not found
<diehlpk> I think you should do a export $CXXFLAGS=-std=c++14
<diehlpk> Or something like this
<jakub_golinowski> I did it earlier, this was just to confirm it was done
<jakub_golinowski> what should I look for in ccmake?
<K-ballo> someone is forcing -std=c++11
<jakub_golinowski> CMAKE_CXX_FLAGS -std=c++14
<jakub_golinowski> is set in ccmake
<K-ballo> look for something like set (CMAKE_CXX_STANDARD 11) in the dependency libraries
<K-ballo> or set_target_properties(... CXX_STANDARD 11) ...
<diehlpk> jakub_golinowski, Can you double check if hpx is built with c++14?
<K-ballo> I can check from here that the hpx that is found by opencv was configured for C++14
<jakub_golinowski> OK
<jakub_golinowski> error changed
<diehlpk> Why?
<jakub_golinowski> K-ballo, you were right there was enforcement to 11 in opencv_repo/cmake/OpenCVDetectCXXCompiler.cmake
<K-ballo> yeah, figured..
<K-ballo> how to set compiler flags is one of the most misunderstood aspects of cmake
<K-ballo> a library forcing flags into its consumers is an abomination
<jakub_golinowski> do you have a link to some article about good practices about it?
<K-ballo> unfortunately I do not even know of any
<jakub_golinowski> well but there are still errors, but this time it is form OpenCV part :/
<jakub_golinowski> and about setting the standard
<jakub_golinowski> set(CMAKE_CXX_STANDARD 14)
<jakub_golinowski> should I leave it like this or delete?
<K-ballo> you should most likely delete it, as it overrides any user choice
<K-ballo> the choice of standard is for the user to make, rarely for the project, never for a library
<diehlpk> Ok, it is funny that it is suppressed to 11 when minimum is 14
<diehlpk> Or may check if user specified standard is less 14 and through an error
<diehlpk> I did it for my lib
<jakub_golinowski> hmm
<jakub_golinowski> now the error occurs earlier and seems very much like compiler issue
<K-ballo> you can't actually check if user specified standard is less than 14
<K-ballo> closest you can do is check that some code snippet compiles under user specified flags
<diehlpk> jakub_golinowski, This error seems to be related to opencv
<diehlpk> Which version are you using?
<jakub_golinowski> the most up-to-date master
eschnett has quit [Quit: eschnett]
<jakub_golinowski> ok I will try to rebuild hpx to c++11 :/
<jakub_golinowski> how to set the standard for building hpx? also with export CXXFLAGS=-std=c++11
<diehlpk> jakub_golinowski, Why not use a stable version for opencv
<jakub_golinowski> well because I assumed we want in the end the hpx to be a real-deal backend for opencv
<jakub_golinowski> so the changes to opencv should be done in master
<diehlpk> Ok, but you will have to deal with broken master
<jakub_golinowski> hmm but it was building and working without tinkering with the cmake lists
<jakub_golinowski> but it is also an idea to try out - if I am able to plug in the backend for the stable version of opencv
<diehlpk> Ok
<jakub_golinowski> but for now I think downgrading HPX to c++11 might work
<diehlpk> Yes
<jakub_golinowski> at least this is sth doable
<diehlpk> You could try to do this
<K-ballo> I believe hpx has some odd flags to choose standard
<diehlpk> Or first try to update master
<jakub_golinowski> diehlpk, which master?
<diehlpk> Opencv
<diehlpk> maybe one introduced a bug there
<diehlpk> I have to go
<jakub_golinowski> ok thanks for help
<diehlpk> You are welcome
<nikunj97> I wanted to add a pull request to hpx as my first gsoc commit, any specific protocol that I should know about?
<diehlpk> Have a proper test case
<diehlpk> Have good documentation
<jakub_golinowski> hkaiser, do you know a way to enforce HPX to be built in c++11?
<diehlpk> and explain in the pr what you did
<nikunj97> diehlpk: should I add a test case for it to add it to make tests?
<nikunj97> diehlpk: also, I have basically added a replacement for hpx_main #define main method for gnu and clang based compilers
<hkaiser> jakub_golinowski: cmake -DHPX_WITH_CXX11=On ...
<diehlpk> nikunj97, Unit test if applicable
<diehlpk> Have to go
<nikunj97> diehlpk: ok
<nikunj97> hkaiser: yt?
<hkaiser> here
<nikunj97> hkaiser: should I write a unit test for my pr?
<nikunj97> hkaiser: I've tested it with hpx debug options on my pc
<nikunj97> and everything is running fine as of now
<hkaiser> nikunj97: a unit test is certainly appreciated
aserio has quit [Quit: aserio]
aserio has joined #ste||ar
aserio has quit [Client Quit]
<nikunj97> hkaiser: ok, so I'll work on a unit test as well
<nikunj97> hkaiser: also what should I name my branch?
hkaiser has quit [Read error: Connection reset by peer]
hkaiser has joined #ste||ar
<hkaiser> nikunj97: what_ever_you_like ;-)
nikunj97 has quit [Ping timeout: 256 seconds]
<K-ballo> release
<jakub_golinowski> diehlpk, K-ballo after building HPX in c++11 the error did not occur but now I get linking error which sounds more like wrong cmake config
<K-ballo> involving hpx symbols?
<jakub_golinowski> K-ballo, you mean in the error?
<jakub_golinowski> or in the cmake
<K-ballo> yes, I mean in the error message
<K-ballo> so no?
<K-ballo> `general` is unlikely to be the name of a library, would it be the name of a cmake library target?
<jakub_golinowski> I also thought about `general` being an unlikely name
<jakub_golinowski> and thought this line in cmake can be somehow connected with it:
<jakub_golinowski> list(APPEND OPENCV_LINKER_LIBS ${HPX_LIBRARIES})
<jakub_golinowski> (I put this line there)
<hkaiser> jakub_golinowski: don't do this, rather use target_link_libraries()
<jakub_golinowski> but then I had a problem
<jakub_golinowski> which target should I pass
kisaacs has quit [Ping timeout: 240 seconds]
nikunj has joined #ste||ar
<K-ballo> the one(s) that depend directly on hpx
galabc has quit [Ping timeout: 268 seconds]
akheir has quit [Quit: Leaving]
kisaacs has joined #ste||ar
nikunj has quit [Ping timeout: 245 seconds]
nikunj has joined #ste||ar
nikunj has quit [Ping timeout: 245 seconds]
nikunj has joined #ste||ar
kisaacs has quit [Ping timeout: 268 seconds]
hkaiser[m] has joined #ste||ar
nikunj has quit [Ping timeout: 245 seconds]
galabc has joined #ste||ar
kisaacs has joined #ste||ar