C++ 11 support status

User 206 | 4/7/2014, 8:43:46 AM

I am writing some algorithms on top of Graphlab and would love to use C++11 features. About a year ago Yucheng wrote that

You can turn it on with ./configure --c++11 However, we have not tested this exhaustively.

Is the current situation different? Any plans for the near future? Any bugs related to C++11 usage that we should know of?

Jesús

Comments

User 20 | 4/8/2014, 4:45:00 AM

It should generally work fine. There are some issues with actually using lambdas in certain places (like in the warp engine). We have fixed a few of those, but there may be more. They are not hard to fix when encountered though.


User 206 | 4/21/2014, 9:50:36 PM

As of April, 21, 2014, it seems that the main graphlab project compiles and run correctly with C++11. However, there are some toolkits that fail to compile. In particular: The extensions toolkit (which only should compile with C++11) fails to compile. The clustering toolkit (due to a small problem with make_pair that can easily be fixed). All other toolkits, apps, demoapps and tests compile correctly.


User 6 | 4/22/2014, 4:59:01 AM

We would love to get a fix from you for the clustering toolkit to work with c++11. Please send a pull request!


User 206 | 4/22/2014, 10:40:20 AM

Thanks Danny, I did. https://github.com/graphlab-code/graphlab/pull/139


User 6 | 4/22/2014, 12:10:52 PM

Just approved the patch. Thanks again!