-
Notifications
You must be signed in to change notification settings - Fork 432
stream_gpu-inl.h:65: Default GPU stream was used when MSHADOW_FORCE_STREAM was on #75
Comments
Something i noticed is that when i made this modification to _tensor_cpu-inl.h_ because the value of NewTensor(const Shape<dim> &shape, DType initv, bool pad, Stream<Device> *stream_) {
Tensor<Device, dim, DType> obj(shape);
Stream<Device> * _stream = NewStream<Device>(); // this is the line added.
obj.stream_ = _stream;
// obj.stream_ = stream_;
// everything as per in the code After some testing, it appears that the root problem is GCC's rule on default arguments that's causing the problem i.e. in the function declaration in _tensor.h_ 568 template<typename Device, typename DType, int dim>
569 inline Tensor<Device, dim, DType> NewTensor(const Shape<dim> &shape,
570 DType initv,
571 bool pad = MSHADOW_ALLOC_PAD,
572 Stream<Device> *stream = NULL); I'll test some more and see what else i can find. |
@antinucleon can you update the example? |
So, got the example to work properly but there's a few signature changes which i highlight them below but i'm not sure what's your design rationale so i leave it to you? // file: tensor_cpu-inl.h
NewTensor(const Shape<dim> &shape, DType initv, Stream<Device> *stream_, bool pad) {
// file: tensor.h
template<typename Device, typename DType, int dim>
inline Tensor<Device, dim, DType> NewTensor(const Shape<dim> &shape,
DType initv,
Stream<Device> *stream = NULL,
bool pad = MSHADOW_ALLOC_PAD); another problem is the API template<int dim, typename DType>
inline void Copy(Tensor<cpu, dim, DType> dst,
const Tensor<gpu, dim, DType> &src,
Stream<gpu> *stream = NULL); |
u can just change the fallowing code in basic_stream.cu:
|
Got the same error just running the test in mshadow/test. What is the recommendation solution? |
This code base has been donated to the Apache MXNet project per #373, and repo is deprecated. Future development and issue tracking should continue in Apache MXNet. |
Hi,
is there an idea why i'm getting this error when i attempt to run the binary from _basic_streams.cu_
any tips and advice is appreciated.
The text was updated successfully, but these errors were encountered: