inteface changing
This commit is contained in:
parent
684ea0ad26
commit
732d8c33d1
@ -77,7 +77,7 @@ class StreamAdapter : public IStream {
|
|||||||
*/
|
*/
|
||||||
inline IStream *CreateStream(const char *uri, const char *mode) {
|
inline IStream *CreateStream(const char *uri, const char *mode) {
|
||||||
#if RABIT_USE_WORMHOLE
|
#if RABIT_USE_WORMHOLE
|
||||||
return new StreamAdapter<dmlc::ISeekStream>(dmlc::ISeekStream::Create(uri, mode));
|
return new StreamAdapter<dmlc::IStream>(dmlc::IStream::Create(uri, mode));
|
||||||
#else
|
#else
|
||||||
using namespace std;
|
using namespace std;
|
||||||
if (!strncmp(uri, "file://", 7)) {
|
if (!strncmp(uri, "file://", 7)) {
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if RABIT_USE_WORMHOLE
|
#if RABIT_USE_WORMHOLE
|
||||||
#include <io.h>
|
#include <dmlc/io.h>
|
||||||
#endif
|
#endif
|
||||||
/*! \brief io interface */
|
/*! \brief io interface */
|
||||||
namespace rabit {
|
namespace rabit {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user