|
3262 | 3262 | 'workernames' : ["as-builder-7"],
|
3263 | 3263 | 'builddir': "flang-runtime-cuda-gcc",
|
3264 | 3264 | 'factory' : UnifiedTreeBuilder.getCmakeExBuildFactory(
|
3265 |
| - depends_on_projects = ["llvm", "clang", "mlir", "flang", "flang-rt"], |
| 3265 | + depends_on_projects = ["llvm", "clang", "mlir", "flang"], |
| 3266 | + enable_runtimes = ["flang-rt", "openmp"], |
3266 | 3267 | clean = True,
|
3267 | 3268 | checks = [],
|
3268 | 3269 | targets = ["flang-rt"],
|
|
3272 | 3273 | "LLVM_ENABLE_ASSERTIONS" : "ON",
|
3273 | 3274 | "BUILD_SHARED_LIBS" : "OFF",
|
3274 | 3275 | "FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT" : "CUDA",
|
| 3276 | + "FLANG_PARALLEL_COMPILE_JOBS" : 12, |
3275 | 3277 | "CMAKE_CUDA_COMPILER" : "/usr/local/cuda/bin/nvcc",
|
3276 | 3278 | "CMAKE_CXX_COMPILER" : "/usr/bin/g++",
|
3277 | 3279 | "CMAKE_C_COMPILER" : "/usr/bin/gcc",
|
|
3295 | 3297 | 'tags' : ["flang", "runtime"],
|
3296 | 3298 | 'workernames' : ["as-builder-7"],
|
3297 | 3299 | 'builddir': "flang-runtime-cuda-clang",
|
3298 |
| - 'factory' : StagedBuilder.getCmakeBuildFactory( |
| 3300 | + 'factory' : UnifiedTreeBuilder.getCmakeExBuildFactory( |
| 3301 | + depends_on_projects = ["llvm", "clang", "lld", "flang"], |
| 3302 | + enable_runtimes = ["flang-rt", "openmp"], |
3299 | 3303 | clean = True,
|
3300 |
| - stages = [ |
3301 |
| - dict( |
3302 |
| - name = "flang", |
3303 |
| - depends_on_projects = ["llvm", "clang", "flang", "clang-tools-extra", "lld", "openmp"], |
3304 |
| - enable_runtimes = ["compiler-rt"], |
3305 |
| - cmake_definitions = { |
3306 |
| - "LLVM_CCACHE_BUILD" : "ON", |
3307 |
| - "LLVM_ENABLE_ASSERTIONS" : "ON", |
3308 |
| - "CMAKE_BUILD_TYPE" : "Release", |
3309 |
| - "LLVM_TARGETS_TO_BUILD" : "Native", |
3310 |
| - "CLANG_DEFAULT_LINKER" : "lld", |
3311 |
| - }, |
3312 |
| - install_dir = "install-flang", |
3313 |
| - env = { |
3314 |
| - 'CCACHE_DIR' : util.Interpolate("%(prop:builddir)s/ccache-db"), |
3315 |
| - }, |
3316 |
| - ), |
3317 |
| - dict( |
3318 |
| - name = "flang-rt", |
3319 |
| - depends_on_projects = ["flang-rt"], |
3320 |
| - cmake_definitions = { |
3321 |
| - "CMAKE_BUILD_TYPE" : "Release", |
3322 |
| - "CMAKE_C_COMPILER" : util.Interpolate("%(prop:builddir)s/install-flang/bin/clang"), |
3323 |
| - "CMAKE_CXX_COMPILER" : util.Interpolate("%(prop:builddir)s/install-flang/bin/clang++"), |
3324 |
| - "CMAKE_Fortran_COMPILER" : util.Interpolate("%(prop:builddir)s/install-flang/bin/flang"), |
3325 |
| - "CMAKE_Fortran_COMPILER_WORKS" : "ON", |
3326 |
| - "FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT" : "OpenMP", |
3327 |
| - "FLANG_RT_OMP_DEVICE_ARCHITECTURES" : "sm_50;sm_60;sm_70;sm_80", |
3328 |
| - }, |
3329 |
| - src_to_build_dir = "runtimes", |
3330 |
| - ), |
3331 |
| - ], |
3332 |
| - jobs = 64, |
| 3304 | + checks = [], |
| 3305 | + cmake_definitions = { |
| 3306 | + "CMAKE_BUILD_TYPE" : "Release", |
| 3307 | + "CMAKE_EXPORT_COMPILE_COMMANDS" : "ON", |
| 3308 | + "LLVM_CCACHE_BUILD" : "ON", |
| 3309 | + "LLVM_ENABLE_ASSERTIONS" : "ON", |
| 3310 | + "LLVM_TARGETS_TO_BUILD" : "Native", |
| 3311 | + "CLANG_DEFAULT_LINKER" : "lld", |
| 3312 | + |
| 3313 | + "FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT" : "OpenMP", |
| 3314 | + "FLANG_RT_DEVICE_ARCHITECTURES" : "sm_50;sm_60;sm_70;sm_80", |
| 3315 | + "FLANG_PARALLEL_COMPILE_JOBS" : 12, |
| 3316 | + "FLANG_RT_INCLUDE_CUF" : "OFF", |
| 3317 | + "FLANG_RT_INCLUDE_TESTS" : "OFF", |
| 3318 | + }, |
3333 | 3319 | env = {
|
| 3320 | + 'CCACHE_DIR' : util.Interpolate("%(prop:builddir)s/ccache-db"), |
3334 | 3321 | # TMP/TEMP within the build dir (to utilize a ramdisk).
|
3335 |
| - 'TMP' : util.Interpolate("%(prop:builddir)s/%(prop:objrootdir)s"), |
3336 |
| - 'TEMP' : util.Interpolate("%(prop:builddir)s/%(prop:objrootdir)s"), |
| 3322 | + 'TMP' : util.Interpolate("%(prop:builddir)s/build"), |
| 3323 | + 'TEMP' : util.Interpolate("%(prop:builddir)s/build"), |
3337 | 3324 | })},
|
3338 | 3325 |
|
3339 | 3326 | ## RISC-V RV64GC check-all running under qemu-user.
|
|
0 commit comments