Skip to content

Commit

Permalink
[OpenMP] Fixed test environment of check-libomptarget-nvptx
Browse files Browse the repository at this point in the history
D95161 removed the option `--libomptarget-nvptx-path`, which is used in
the tests for `libomptarget-nvptx`.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D95293
  • Loading branch information
shiltian committed Jan 24, 2021
1 parent 8b9df70 commit cfd978d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openmp/libomptarget/deviceRTLs/nvptx/test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ config.test_format = lit.formats.ShTest()

# compiler flags
config.test_flags = " -I " + config.omp_header_directory + \
" -L " + config.library_dir + \
" --libomptarget-nvptx-path=" + config.library_dir;
" -L " + config.library_dir

if config.omp_host_rtl_directory:
config.test_flags = config.test_flags + \
Expand All @@ -42,6 +41,7 @@ if config.omp_host_rtl_directory:
config.test_flags = config.test_flags + " " + config.test_extra_flags

# Setup environment to find dynamic library at runtime.
prepend_library_path('LIBRARY_PATH', config.library_dir, ":")
prepend_library_path('LD_LIBRARY_PATH', config.library_dir, ":")
prepend_library_path('LD_LIBRARY_PATH', config.omp_host_rtl_directory, ":")

Expand Down

0 comments on commit cfd978d

Please sign in to comment.