Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.
This repository was archived by the owner on May 23, 2024. It is now read-only.

Using NVCC compiler options results in g++ unrecognized command line option #31

@ian-bertolacci

Description

@ian-bertolacci

I'm trying a work-around for an issue (#1944) and thought that explicitly setting the gpu architecture and code flags in nvcc_wrapper might help.
However, nvcc_wrapper does not seem to be passing the arguments to what-ever correctly.

In particular, I am trying to set the --gpu-architecture and --gpu-code flags.
From nvcc_wrapper, it appears that both the space and equals sign (an issue in #17) should be handled.
I have tried both with about the same result.

using --gpu-architecture=sm_50 --gpu-code=sm_50

> nvcc_wrapper --expt-extended-lambda -D_FORCE_INLINES -D_MWAITXINTRIN_H_INCLUDED ../src/*.cpp ../src/simple_whole_kokkos/*.cpp -I../src -I../src/simple_whole_kokkos -lkokkos -ldl -lpthread -fopenmp --std=c++11 -DUSE_CUDA --gpu-architecture=sm_50 --gpu-code=sm_50
g++-5: error: unrecognized command line option ‘--gpu-architecture=sm_50’
g++-5: error: unrecognized command line option ‘--gpu-code=sm_50’

using --gpu-architecture sm_50 --gpu-code sm_50:

> nvcc_wrapper --expt-extended-lambda -D_FORCE_INLINES -D_MWAITXINTRIN_H_INCLUDED ../src/*.cpp ../src/simple_whole_kokkos/*.cpp -I../src -I../src/simple_whole_kokkos -lkokkos -ldl -lpthread -fopenmp --std=c++11 -DUSE_CUDA --gpu-architecture sm_50 --gpu-code sm_50
g++-5: error: sm_50: No such file or directory
g++-5: error: sm_50: No such file or directory
g++-5: error: unrecognized command line option ‘--gpu-architecture’
g++-5: error: unrecognized command line option ‘--gpu-code’

I've also tried using them in different locations in the command (thinking it was an argument ordering context issue), and with different orderings with respect to each other with no change.

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