[Openmp-commits] [PATCH] D95274: [libomptarget][cuda] Call v2 functions explicitly

Kelvin Li via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 25 07:05:59 PST 2021


kkwli0 added a comment.

I am seeing these errors.

  /llvm-project/openmp/runtime/src/kmp_runtime.cpp:36:10: fatal error: 'llvm/Support/TimeProfiler.h' file not found
  #include "llvm/Support/TimeProfiler.h"
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  make[5]: *** [openmp/runtime/src/CMakeFiles/omp.dir/kmp_runtime.cpp.o] Error 1
  make[5]: *** Waiting for unfinished jobs....
  /llvm-project/openmp/libomptarget/plugins/cuda/src/rtl.cpp:469:21: error: use of undeclared identifier 'cuDevicePrimaryCtxRelease_v2'; did you mean 'cuDevicePrimaryCtxRelease'?
          checkResult(cuDevicePrimaryCtxRelease_v2(Device),
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      cuDevicePrimaryCtxRelease
  /usr/local/cuda/include/cuda.h:3437:18: note: 'cuDevicePrimaryCtxRelease' declared here
  CUresult CUDAAPI cuDevicePrimaryCtxRelease(CUdevice dev);
                   ^
  /llvm-project/openmp/libomptarget/plugins/cuda/src/rtl.cpp:509:13: error: use of undeclared identifier 'cuDevicePrimaryCtxSetFlags_v2'; did you mean 'cuDevicePrimaryCtxSetFlags'?
        Err = cuDevicePrimaryCtxSetFlags_v2(Device, CU_CTX_SCHED_BLOCKING_SYNC);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              cuDevicePrimaryCtxSetFlags
  /usr/local/cuda/include/cuda.h:3502:18: note: 'cuDevicePrimaryCtxSetFlags' declared here
  CUresult CUDAAPI cuDevicePrimaryCtxSetFlags(CUdevice dev, unsigned int flags);
                   ^
  make[4]: *** [openmp/runtime/src/CMakeFiles/omp.dir/all] Error 2
  make[4]: *** Waiting for unfinished jobs....


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95274/new/

https://reviews.llvm.org/D95274



More information about the Openmp-commits mailing list