[all-commits] [llvm/llvm-project] 465a3c: [CUDA][HIP] improve error message for missing cmat...

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Thu Jan 9 07:58:31 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 465a3ce9fac1fcf49d5772f70564973a73748d57
      https://github.com/llvm/llvm-project/commit/465a3ce9fac1fcf49d5772f70564973a73748d57
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2025-01-09 (Thu, 09 Jan 2025)

  Changed paths:
    M clang/lib/Headers/cuda_wrappers/cmath

  Log Message:
  -----------
  [CUDA][HIP] improve error message for missing cmath (#122155)

One common error seen in CUDA/HIP compilation is:

fatal error: 'cmath' file not found

which is due to inproper installation of standard C++ libraries.

Since it happens with #include_next, users may feel confusing which
cmath is not found and how to fix it.

Add an error directive to help users resolve this issue.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list