<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/63434>63434</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            build error
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Ashutosh-Londhe
      </td>
    </tr>
</table>

<pre>
    I am getting following error while doing make
`llvm-project/openmp/libomptarget/plugins/cuda/src/rtl.cpp:1453:30: error: ‘CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH’ was not declared in this scope; did you mean ‘CU_DEVICE_ATTRIBUTE_COMPUTE_MODE’?
 1453 |                     &TmpInt, CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH, Device),
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                              CU_DEVICE_ATTRIBUTE_COMPUTE_MODE
[ 51%] Building CXX object lib/DWP/CMakeFiles/LLVMDWP.dir/DWPError.cpp.o
[ 51%] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVRange.cpp.o
[ 51%] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o
[ 51%] Linking CXX shared library ../../../../../lib/libomptarget.rtl.x86_64.so
[ 51%] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o
[ 51%] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o
[ 51%] Linking CXX static library ../../libLLVMRuntimeDyld.a
[ 51%] Built target LLVMRuntimeDyld
[ 51%] Built target omptarget.rtl.x86_64
[ 51%] Building CXX object tools/llvm-nm/CMakeFiles/llvm-nm.dir/llvm-nm.cpp.o
make[2]: *** [projects/openmp/libomptarget/plugins/cuda/CMakeFiles/omptarget.rtl.cuda.dir/build.make:76: projects/openmp/libomptarget/plugins/cuda/CMakeFiles/omptarget.rtl.cuda.dir/src/rtl.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:22380: projects/openmp/libomptarget/plugins/cuda/CMakeFiles/omptarget.rtl.cuda.dir/all] Error 2`

used following options in CMAKE

`git clone https://github.com/llvm/llvm-project.git

cd llvm-project

mkdir build
cd build

cmake  -DCMAKE_BUILD_TYPE=Release -DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_60 -DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=60 -DLLVM_TARGETS_TO_BUILD="X86;NVPTX" -DLLVM_ENABLE_PROJECTS="clang;openmp" ../llvm/

make -j`

using gcc9.3.0, python 3.9 and cmake 3.20
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVt9zmzgQ_mvWL5owWDLYfvADP1vf4djjEDf3xAiQsRqBGBDN5eX-9hsBbu2eO00eOj0mQ4T0eb_db1da0bblRcXYCiwXLH9CO3WSzcppT52S7ekuklV-YpNU5q-rNaIlKphSvCrQUQohX_SINY1s0MuJC4ZyqWdK-szA9MF0wDaF-FLe1Y38zDIFOJQ1q8oacCh4Ksta0aZger4WXcGrFnCYdTkFHLZNBjhslDCyugbiTGcWAeIQE4gzcOoBBBgWJiwX3mPiB4e1FyROHO_X7mMcJN52uwv2Trw-BEnkPN57H8_wJXqhLaqkQjnLBG1YjniF1Im3qM1kzYC4KOc5epUdKhmtfsaz2en_m60ffGUAEg4aIO05grmHbj2A7bis15UC7KE3BoE95LMvPGOAl4C9kWYw9wOab3xW8M9bnncZ_akoQzFYLrKmgC2wfOR2XOS6WLynJyRTXR1I8BRw6H_aAQ69DX1mIRdMl0QUHTb-p52R82YABDr_ujAM-T7bLO2KdXWU2qgseEbFgbOXm3xn6AVudMCTDdOow55WBfsfuMFozn4sR8Sr57Mb7akvdsHThjav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