|
154 | 154 | /// Check that the runtime bitcode library is part of the compile line. Create a bogus
|
155 | 155 | /// bitcode library and add it to the LIBRARY_PATH.
|
156 | 156 | // RUN: env LIBRARY_PATH=%S/Inputs/libomptarget %clang -### -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \
|
157 |
| -// RUN: -Xopenmp-target -march=sm_20 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \ |
| 157 | +// RUN: -Xopenmp-target -march=sm_35 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \ |
158 | 158 | // RUN: -fopenmp-relocatable-target -save-temps -no-canonical-prefixes %s 2>&1 \
|
159 | 159 | // RUN: | FileCheck -check-prefix=CHK-BCLIB %s
|
160 | 160 | /// The user can override default detection using --libomptarget-nvptx-bc-path=.
|
161 | 161 | // RUN: %clang -### -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \
|
162 | 162 | // RUN: --libomptarget-nvptx-bc-path=%S/Inputs/libomptarget/libomptarget-nvptx-test.bc \
|
163 |
| -// RUN: -Xopenmp-target -march=sm_20 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \ |
| 163 | +// RUN: -Xopenmp-target -march=sm_35 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \ |
164 | 164 | // RUN: -fopenmp-relocatable-target -save-temps -no-canonical-prefixes %s 2>&1 \
|
165 | 165 | // RUN: | FileCheck -check-prefix=CHK-BCLIB-USER %s
|
166 | 166 |
|
167 |
| -// CHK-BCLIB: clang{{.*}}-triple{{.*}}nvptx64-nvidia-cuda{{.*}}-mlink-builtin-bitcode{{.*}}libomptarget-nvptx-cuda_80-sm_20.bc |
| 167 | +// CHK-BCLIB: clang{{.*}}-triple{{.*}}nvptx64-nvidia-cuda{{.*}}-mlink-builtin-bitcode{{.*}}libomptarget-nvptx-cuda_80-sm_35.bc |
168 | 168 | // CHK-BCLIB-USER: clang{{.*}}-triple{{.*}}nvptx64-nvidia-cuda{{.*}}-mlink-builtin-bitcode{{.*}}libomptarget-nvptx-test.bc
|
169 | 169 | // CHK-BCLIB-NOT: {{error:|warning:}}
|
170 | 170 |
|
171 | 171 | /// ###########################################################################
|
172 | 172 |
|
173 | 173 | /// Check that the warning is thrown when the libomptarget bitcode library is not found.
|
174 |
| -/// Libomptarget requires sm_35 or newer so an sm_20 bitcode library should never exist. |
| 174 | +/// Libomptarget requires sm_35 or newer so an sm_35 bitcode library should never exist. |
175 | 175 | // RUN: %clang -### -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \
|
176 |
| -// RUN: -Xopenmp-target -march=sm_20 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \ |
| 176 | +// RUN: -Xopenmp-target -march=sm_35 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \ |
177 | 177 | // RUN: -fopenmp-relocatable-target -save-temps -no-canonical-prefixes %s 2>&1 \
|
178 | 178 | // RUN: | FileCheck -check-prefix=CHK-BCLIB-WARN %s
|
179 | 179 |
|
180 |
| -// CHK-BCLIB-WARN: No library 'libomptarget-nvptx-cuda_80-sm_20.bc' found in the default clang lib directory or in LIBRARY_PATH. Please use --libomptarget-nvptx-bc-path to specify nvptx bitcode library. |
| 180 | +// CHK-BCLIB-WARN: No library 'libomptarget-nvptx-cuda_80-sm_35.bc' found in the default clang lib directory or in LIBRARY_PATH. Please use --libomptarget-nvptx-bc-path to specify nvptx bitcode library. |
181 | 181 |
|
182 | 182 | /// ###########################################################################
|
183 | 183 |
|
184 | 184 | /// Check that the error is thrown when the libomptarget bitcode library does not exist.
|
185 | 185 | // RUN: %clang -### -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \
|
186 |
| -// RUN: -Xopenmp-target -march=sm_20 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \ |
| 186 | +// RUN: -Xopenmp-target -march=sm_35 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \ |
187 | 187 | // RUN: --libomptarget-nvptx-bc-path=not-exist.bc \
|
188 | 188 | // RUN: -fopenmp-relocatable-target -save-temps -no-canonical-prefixes %s 2>&1 \
|
189 | 189 | // RUN: | FileCheck -check-prefix=CHK-BCLIB-ERROR %s
|
|
0 commit comments