Skip to content

compile error

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9586
    Pulauwin
    Participant

    g++: error: unrecognized command line option ‘–forward-unknown-to-host-compiler’
    g++: error: unrecognized command line option ‘–generate-code=arch=compute_75,code=[compute_75,sm_75]’
    g++: error: unrecognized command line option ‘–extended-lambda’
    g++: error: unrecognized command line option ‘–expt-relaxed-constexpr’
    g++: error: unrecognized command line option ‘-rdc=true’
    g++: error: unrecognized command line option ‘-Xcudafe’
    g++: error: unrecognized command line option ‘–diag_suppress=implicit_return_from_non_void_function –display_error_number –diag_suppress=20014 –diag_suppress=20011’

    #9587
    Adrian
    Keymaster

    You are attempting to use the GNU C++ compiler to compile CUDA code (the unrecognized flags are specific to nvcc). What specifically do you want to do and how did you modify the default config.mk?

    #9588
    Adrian
    Keymaster

    I just noticed that you reported the same thing two years ago. What is up with this?

    #9590
    Pulauwin
    Participant

    I still cann’t pass. which linux version are you using. I use fedora 41, the gcc is version 14. so, it complain about ” it cann’t support gcc later than 12″

    I am realy confused about it.

    #9591
    Adrian
    Keymaster

    What do you mean? In the other thread you said that it works. Please share your config, the error you posted doesn’t make sense. In any case, it would be nice if you described your problem instead of just dumping an error message without context and comment.

    The error message “it cann’t support gcc later than 12” is hopefully self explanatory.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.