CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
71 lines
3.5 KiB
Common Lisp
71 lines
3.5 KiB
Common Lisp
// COM: Prefixes follow pattern (AMD_COMGR_SAVETEMPS)-(AMD_COMGR_USE_VFS)-(DataAction API)
|
|
|
|
// COM: Default behavior right now is to use the real file system
|
|
// RUN: source-to-bc-with-dev-libs %s -o %t-with-dev-libs.bc | %FileCheck --check-prefixes=STATUS,OUT-NA-NA-NA %s
|
|
|
|
// COM: AMD_COMGR_USE_VFS=1 should force the compiler to use VFS, irrespective of the option provided via the DataAction API
|
|
// RUN: env AMD_COMGR_USE_VFS=1 source-to-bc-with-dev-libs %s --novfs -o %t-with-dev-libs.bc | %FileCheck --check-prefixes=STATUS,OUT-NA-VFS-NOVFS %s
|
|
// RUN: env AMD_COMGR_USE_VFS=1 source-to-bc-with-dev-libs %s -o %t-with-dev-libs.bc | %FileCheck --check-prefixes=STATUS,OUT-NA-VFS-NA %s
|
|
|
|
// COM: AMD_COMGR_USE_VFS=0 should force the compiler to not use VFS, irrespective of the option provided via the DataAction API
|
|
// RUN: env AMD_COMGR_USE_VFS=0 source-to-bc-with-dev-libs %s --vfs -o %t-with-dev-libs.bc | %FileCheck --check-prefixes=STATUS,OUT-NA-NOVFS-VFS %s
|
|
// RUN: env AMD_COMGR_USE_VFS=0 source-to-bc-with-dev-libs %s -o %t-with-dev-libs.bc | %FileCheck --check-prefixes=STATUS,OUT-NA-NOVFS-NA %s
|
|
|
|
// COM: No value for AMD_COMGR_USE_VFS should respect option provided via the DataAction API
|
|
// RUN: source-to-bc-with-dev-libs %s --vfs -o %t-with-dev-libs.bc | %FileCheck --check-prefixes=STATUS,OUT-NA-NA-VFS %s
|
|
// RUN: source-to-bc-with-dev-libs %s --novfs -o %t-with-dev-libs.bc | %FileCheck --check-prefixes=STATUS,OUT-NA-NA-NOVFS %s
|
|
|
|
// COM: AMD_COMGR_SAVE_TEMPS=1 should override all options and always use the real file system
|
|
// RUN: env AMD_COMGR_SAVE_TEMPS=1 source-to-bc-with-dev-libs %s --vfs -o %t-with-dev-libs.bc | %FileCheck --check-prefixes=STATUS,OUT-SAVETEMPS-NA-VFS %s
|
|
// RUN: env AMD_COMGR_SAVE_TEMPS=1 AMD_COMGR_USE_VFS=1 source-to-bc-with-dev-libs %s -o %t-with-dev-libs.bc | %FileCheck --check-prefixes=STATUS,OUT-SAVETEMPS-VFS-NA %s
|
|
// RUN: env AMD_COMGR_SAVE_TEMPS=1 AMD_COMGR_USE_VFS=1 source-to-bc-with-dev-libs %s --vfs -o %t-with-dev-libs.bc | %FileCheck --check-prefixes=STATUS,OUT-SAVETEMPS-VFS-VFS %s
|
|
|
|
// OUT-NA-NA-NA: File System: VFS
|
|
// OUT-NA-VFS-NOVFS: File System: VFS
|
|
// OUT-NA-VFS-NA: File System: VFS
|
|
// OUT-NA-NOVFS-VFS: File System: Real
|
|
// OUT-NA-NOVFS-NA: File System: Real
|
|
// OUT-NA-NA-VFS: File System: VFS
|
|
// OUT-NA-NA-NOVFS: File System: Real
|
|
// OUT-SAVETEMPS-NA-VFS: File System: Real
|
|
// OUT-SAVETEMPS-VFS-VFS: File System: Real
|
|
// OUT-SAVETEMPS-VFS-NA: File System: Real
|
|
|
|
// COM: Verify success of compilation for all scenarios
|
|
// STATUS: ReturnStatus: AMD_COMGR_STATUS_SUCCESS
|
|
|
|
extern const __constant bool __oclc_finite_only_opt;
|
|
extern const __constant bool __oclc_unsafe_math_opt;
|
|
extern const __constant bool __oclc_wavefrontsize64;
|
|
extern const __constant int __oclc_ISA_version;
|
|
extern const __constant int __oclc_ABI_version;
|
|
|
|
void kernel device_libs(__global float *status) {
|
|
|
|
if (__oclc_finite_only_opt) status[0] = 1.0;
|
|
if (__oclc_unsafe_math_opt) status[1] = 1.0;
|
|
if (__oclc_wavefrontsize64) status[4] = 1.0;
|
|
if (__oclc_ISA_version) status[5] = 1.0;
|
|
if (__oclc_ABI_version) status[6] = 1.0;
|
|
|
|
// Math functions to test AMDGPULibCalls Folding optimizations
|
|
// fold_sincos()
|
|
float x = 0.25;
|
|
status[7] = sin(x) + cos(x);
|
|
status[8] = cos(x) + sin(x);
|
|
|
|
// fold_rootn()
|
|
float y = 725.0;
|
|
status[9] = rootn(y, 3);
|
|
status[10] = rootn(y, -1);
|
|
status[11] = rootn(y, -2);
|
|
|
|
// fold_pow()
|
|
float z = 12.16;
|
|
status[12] = pow(z, (float) 0.5);
|
|
status[13] = powr(y, (float) 7.23);
|
|
|
|
// printf()
|
|
printf("testy\n");
|
|
}
|