Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Error on compiling basic_stream.cu with CUDA 9.0 #305

Open

Description

@vomarazabo

I tried to compile basic_stream.cu included in the tutorial with the following command. I'm using nvcc 9.0.176.

nvcc -o basic_stream -O3 --use_fast_math -ccbin g++  -Xcompiler "-fopenmp -Wall -O3 -I mshadow -funroll-loops -Wno-unused-variable -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -I/opt/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0" -Xlinker "-lm -lcudart -lcublas -lcurand -lcusolver -L/opt/cuda/lib64 -L/opt/cuda/lib -lblas" basic_stream.cu

I got these error.

basic_stream.cu(12): error: no instance of overloaded function "NewStream" matches the argument list
basic_stream.cu(13): error: no instance of overloaded function "NewStream" matches the argument list
basic_stream.cu(19): error: no instance of overloaded function "NewStream" matches the argument list
3 errors detected in the compilation of "/tmp/tmpxft_00002131_00000000-8_basic_stream.cpp1.ii".

Any idea?

Beside this, I had to add -fopenmp by myself to compile basic.cpp with gcc 7.2.0. Compiling with mshadow.mk and config.mk in the tutorial don't work without adding -fopenmp.

Activity

  1. lwpyr commented on Jul 24, 2018

    @lwpyr

    CUDA 8.0 failed too
    But if I use openblas instead of mkl, complie correctly but fail in running.
    and I modified the .cu file where $NewSteam()$ to $NewSteam(0)$, or there are still errors.
    I don't understand why this happened, because mxnet could build successfully, I come here to learn mshadow because mxnet widely uses mshadow

  2. lwpyr commented on Jul 24, 2018

    @lwpyr

    beside, It seems that cuda 9.0 doesn't support gcc-7

  3. szha commented on Aug 4, 2019

    @szha
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions