CUDA Flags overwritten in CMakeLists.txt + fix

Front page Forums Installation CUDA Flags overwritten in CMakeLists.txt + fix

Tagged: , ,

This topic contains 1 reply, has 2 voices, and was last updated by  nico 3 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #885

    Josef Weinbub
    Participant

    Hi!

    In Paralution 0.8.0, the CUDA Flags are overwritten within your main CMakeLists.txt in line 98, which does not allow to externally set NVCC flags, e.g., use a different host compiler for NVCC.

    For the version implemented in 0.8.0 in CMakeLists.txt (Line 98)
    $ set(CUDA_NVCC_FLAGS -O3 -arch sm_20 –compiler-options -Wall)
    I suggest the following fix:
    $ set(CUDA_NVCC_FLAGS “${CUDA_NVCC_FLAGS} -O3 -arch sm_20 –compiler-options -Wall”)

    This worked for me.

    Best, Josef

    #888

    nico
    Participant

    Hey Josef,

    Thank you very much for this fix! We will include it in the future versions of PARALUTION.

    Best,
    Nico

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.