[all-commits] [llvm/llvm-project] 653655: [libomptarget][cuda] Handle missing _v2 symbols gr...

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Tue Jan 26 16:26:58 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 653655040f3e89f7725ce6961d797d4ac918708b
      https://github.com/llvm/llvm-project/commit/653655040f3e89f7725ce6961d797d4ac918708b
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2021-01-27 (Wed, 27 Jan 2021)

  Changed paths:
    M openmp/libomptarget/plugins/cuda/dynamic_cuda/cuda.cpp
    M openmp/libomptarget/plugins/cuda/dynamic_cuda/cuda.h

  Log Message:
  -----------
  [libomptarget][cuda] Handle missing _v2 symbols gracefully

[libomptarget][cuda] Handle missing _v2 symbols gracefully

Follow on from D95367. Dlsym the _v2 symbols if present, otherwise use the
unsuffixed version. Builds a hashtable for the check, can revise for zero
heap allocations later if necessary.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D95415




More information about the All-commits mailing list