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

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.

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