Skip to content

[CUDA] Asserts tests from llvm-test-suite are failed for unresolved extern function '_wassert' on Windows #4810

Closed
@yuxianch

Description

@yuxianch

Describe the bug
Asserts tests from intel/llvm-test-suite are failed for unresolved extern function '_wassert' with CUDA backend on Windows

To Reproduce

  1. Failed tests are from intel/llvm-test-suite, which are
  SYCL :: Assert/assert_in_kernels_win.cpp
  SYCL :: Assert/assert_in_multiple_tus_one_ndebug_win.cpp
  SYCL :: Assert/assert_in_multiple_tus_win.cpp
  SYCL :: Assert/assert_in_one_kernel_win.cpp
  SYCL :: Assert/assert_in_simultaneous_kernels_win.cpp
  1. Commands used to compile and launch the program
    Take SYCL/Assert/assert_in_multiple_tus.cpp as an example.
clang-cl /EHsc -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=nvptx64-nvidia-cuda -DDEFINE_NDEBUG_INFILE2 -I ./SYCL/Assert/Inputs SYCL/Assert/assert_in_multiple_tus.cpp SYCL/Assert/Inputs/kernels_in_file2.cpp -o build/SYCL/Assert/Output/assert_in_multiple_tus_one_ndebug_win.cpp.tmp.out

Error message:

ptxas fatal   : Unresolved extern function '_wassert'
llvm-foreach:
Assertion failed: !KeyInfoT::isEqual(Val, EmptyKey) && !KeyInfoT::isEqual(Val, TombstoneKey) && "Empty/Tombstone value shouldn't be inserted into map!", file ${compiler_build_path}\llvm\include\llvm/ADT/DenseMap.h, line 624

Environment

Cuda compilation tools, release 11.4, V11.4.120
Build cuda_11.4.r11.4/compiler.30300941_0

Metadata

Metadata

Assignees

Labels

cudaCUDA back-endenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions