[all-commits] [llvm/llvm-project] cb0389: [OpenMP] Fix an issue of wrong return type of Devi...

Shilei Tian via All-commits all-commits at lists.llvm.org
Sun May 3 12:59:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cb038927ef5a038e479ab3a4919da6f413a50a00
      https://github.com/llvm/llvm-project/commit/cb038927ef5a038e479ab3a4919da6f413a50a00
  Author: Shilei Tian <tianshilei1992 at gmail.com>
  Date:   2020-05-03 (Sun, 03 May 2020)

  Changed paths:
    M openmp/libomptarget/plugins/cuda/src/rtl.cpp

  Log Message:
  -----------
  [OpenMP] Fix an issue of wrong return type of DeviceRTLTy::getNumOfDevices

Summary: There is a typo in DeviceRTLTy::getNumOfDevices that the type of its return value is bool. It will lead to a problem of wrong device number returned from omp_get_num_devices.

Reviewers: jdoerfert

Reviewed By: jdoerfert

Subscribers: yaxunl, guansong, openmp-commits

Tags: #openmp

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




More information about the All-commits mailing list