Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1183 commits
Select commit Hold shift + click to select a range
0531c18
[CPUPC-4676] - Fix regressions in OvO
Nov 10, 2020
f28cda6
[CPUPC-4100] [SLN] [FLANG] Support for debug info of pointer attribut…
alokkrsharma Nov 10, 2020
71be1a9
Merge "[CPUPC-4676] - Fix regressions in OvO" into amd-staging
Nov 10, 2020
43594c3
Merge "[CPUPC-4100] [SLN] [FLANG] Support for debug info of pointer a…
alokkrsharma Nov 10, 2020
821e7fe
fixes to support build of flang on ppc64. For example PEFETCH instru…
gregrodgers Nov 10, 2020
abbc20d
Merge pull request #15 from ROCm-Developer-Tools/PR_ppc64_fixes
gregrodgers Nov 11, 2020
990abf4
PR16 from Shivarama to fix genasis
ronlieb Nov 11, 2020
6d82ccf
PR16 from Shivarama to fix genasis
ronlieb Nov 11, 2020
dfd6e9c
[CPUPC-4708] Changes to enable build flang using AOCC clang. required…
shivaramaarao Nov 11, 2020
0602779
[CPUPC-4723] - [SLN] Incorrect results for pointer array member of po…
alokkrsharma Nov 13, 2020
d39fa4b
[CPUPC-4724] Fixes to address ECMWF runtime failures
shivaramaarao Nov 14, 2020
4acb3f9
[CPUPC-4725] merging upstream changes to handle AINT intrinsic
shivaramaarao Nov 14, 2020
6808165
[CPUPC-4726] fixing handling of absolute path in include headers
shivaramaarao Nov 14, 2020
4d85fa8
CPUPC-4508 Fixed Issue in TROVE app
nikhilmk-amd Oct 23, 2020
0cd11e5
CPUPC-4509 Fixed issue in TROVE app
nikhilmk-amd Oct 28, 2020
f7c92d6
[CPUPC-4648] Fixing the issue with do-if association check
shivaramaarao Nov 3, 2020
0710249
[CPUPC-4032] Updating the reduction minop
shivaramaarao Nov 6, 2020
ed39e70
[CPUPC-4675] implementation of max reduction
shivaramaarao Nov 6, 2020
5d55d5b
[CPUPC-4676] - Treating real*4 reductions vars as real*8 reductions
Nov 9, 2020
8413362
[CPUPC-4108] eoshift and cshift intrinsic bug fix
varnj Nov 6, 2020
186737c
[CPUPC-4676] - Fix regressions in OvO
Nov 10, 2020
f83b52c
[CPUPC-4100] [SLN] [FLANG] Support for debug info of pointer attribut…
alokkrsharma Nov 10, 2020
e526520
[CPUPC-4708] Changes to enable build flang using AOCC clang. required…
shivaramaarao Nov 11, 2020
24b81b7
[CPUPC-4724] Fixes to address ECMWF runtime failures
shivaramaarao Nov 14, 2020
330e16f
[CPUPC-4725] merging upstream changes to handle AINT intrinsic
shivaramaarao Nov 14, 2020
ceb8bf2
[CPUPC-4726] fixing handling of absolute path in include headers
shivaramaarao Nov 14, 2020
4b342b7
[CPUPC-4724] Fixes to address ECMWF runtime failures
shivaramaarao Nov 15, 2020
7810caf
[CPUPC-4724] Fixes to address ECMWF runtime failures
shivaramaarao Nov 16, 2020
15f25e3
[CPUPC-4724] Fixes to address ECMWF runtime failures
shivaramaarao Nov 15, 2020
360fb40
[CPUPC-4724] Fixes to address ECMWF runtime failures
shivaramaarao Nov 16, 2020
a65b4f4
[CPUPC-4733] generating malloc call instead of calloc when PGHPF_ZMEM…
shivaramaarao Nov 16, 2020
a4b5781
[CPUPC-4733] generating malloc call instead of calloc when PGHPF_ZMEM…
shivaramaarao Nov 16, 2020
5232f17
Merge "[CPUPC-4723] - [SLN] Incorrect results for pointer array membe…
alokkrsharma Nov 18, 2020
d8e1c1c
CPUPC-2969, CPUPC-2917 - [DWARF4][DWARF5] Support for Assumed-rank array
alokkrsharma Oct 23, 2020
1d6feee
[CPUPC-4468] optional end target support for omp target simd
Nov 18, 2020
edd1c2f
[CPUPC-4723] - [SLN] Incorrect results for pointer array member of po…
alokkrsharma Nov 13, 2020
5970ca4
[CPUPC-4468] fix regression in SOLVE_VV
Nov 19, 2020
ab66d52
CPUPC-4734 Fixed calling typebound prorcedures results in runtime crash
nikhilmk-amd Nov 20, 2020
30f7d4e
CPUPC-4563 Implement noinline/alwaysinline pragmas
Oct 29, 2020
f3c7c3c
[CPUPC-4570] fix for compilation error for do simd construct
Nov 23, 2020
ea4579c
[CPUPC-4684] Issue with Genasis Compilation
shivaramaarao Nov 23, 2020
d29316a
Merge "[CPUPC-4570] fix for compilation error for do simd construct" …
Nov 23, 2020
c5d50f7
Merge "[CPUPC-4684] Issue with Genasis Compilation" into amd-staging
shivaramaarao Nov 23, 2020
9eddd87
Revert "CPUPC-4734 Fixed calling typebound prorcedures results in run…
shivaramaarao Nov 24, 2020
bfc93f4
[CPUPC-4766] Implement !DIR$ SIMD pragma
Nov 20, 2020
723e273
Merge "[CPUPC-4766] Implement !DIR$ SIMD pragma" into amd-staging
Nov 26, 2020
079a222
CPUPC-4516 Fixing compilation errors in 551.ppalm
Nov 26, 2020
a2a9679
[CPUPC-4470] Changes to support newly added solve_vv test-cases
shivaramaarao Nov 27, 2020
5d2e56e
[CPUPC-3752] correcting the test file
shivaramaarao Nov 27, 2020
f502460
[CPUPC-3752] correcting the test file
shivaramaarao Nov 27, 2020
9ed54b3
Merge "[CPUPC-4470] Changes to support newly added solve_vv test-case…
shivaramaarao Nov 28, 2020
57ebf9e
Revert "[CPUPC-4470] Changes to support newly added solve_vv test-cases"
shivaramaarao Nov 28, 2020
2469155
Merge "Revert "[CPUPC-4470] Changes to support newly added solve_vv t…
shivaramaarao Nov 28, 2020
564c4e0
[CPUPC-4841] Fixes for cp2k compilation issues
shivaramaarao Nov 29, 2020
85d7d32
Merge "[CPUPC-3752] correcting the test file" into amd-staging
varnj Nov 30, 2020
fc4e793
[CPUPC-4863] Integrate upstream PR 660 (omp simd)
Dec 2, 2020
b0d8e23
PR 19 from Shivarama fix gen_sptr, ovo, and GenASiS runtime
ronlieb Dec 2, 2020
36cd1e8
PR 19 from Shivarama fix gen_sptr, ovo, and GenASiS runtime
ronlieb Dec 2, 2020
b23e5e5
[CPUPC-4808] Fixing the internal compiler issue with GFC application
shivaramaarao Dec 3, 2020
8ca6e70
Merge "[CPUPC-4863] Integrate upstream PR 660 (omp simd)" into amd-st…
Dec 7, 2020
232de92
CPUPC-4783 - Emitting constant globals in target ir
Dec 7, 2020
2aab657
CPUPC-4470 resloved the sollve_vv testcase declare_target_subroutine.…
Nov 29, 2020
c6131ce
[CPUPC-4863] Fixing the issues with collapse clause
shivaramaarao Dec 7, 2020
c3c7712
[CPUPC-4841] resubmitting the fix
Dec 7, 2020
9005cdc
Merge "[CPUPC-4863] Fixing the issues with collapse clause" into amd-…
shivaramaarao Dec 8, 2020
9d1945f
Merge "[CPUPC-4841] resubmitting the fix" into amd-staging
shivaramaarao Dec 8, 2020
c2c5cb5
CPUPC-3197 - [SLN] Support of DW_TAG_call_site_parameter for flang
alokkrsharma Dec 1, 2020
061dfe8
[CPUPC-4470] resubmitting the fix due to build failure
Dec 8, 2020
7d9c216
Merge "[CPUPC-4470] resubmitting the fix due to build failure" into a…
Dec 9, 2020
3e0ac5a
[CPUPC-4929] workaround to fix the runtime issue
shivaramaarao Dec 9, 2020
12783e0
[CPUPC-4928] Fix for OvO test failures
shivaramaarao Dec 10, 2020
54fb50e
[CPUPC-4928] Fixes to address ACCEL benchmark failures
shivaramaarao Dec 11, 2020
f6d2da5
[CPUPC-4945] Fixing the issues in calling finalize functions
shivaramaarao Dec 13, 2020
62f54bf
CPUPC-4877 Generic procedure in Fortran throwing CE
nikhilmk-amd Dec 14, 2020
4ac519b
CPUPC-4943 - [SLN] Debug support for array parameters with pointer/al…
alokkrsharma Dec 8, 2020
825470c
Merge "CPUPC-4877 Generic procedure in Fortran throwing CE" into amd-…
nikhilmk-amd Dec 16, 2020
5eab4cd
[CPUPC-4863] Minor fix - missing modification in mwd/iltutil.cpp
Dec 17, 2020
b375f9f
CPUPC-4995 Fixed [SLN][Blocker][Regression]Internal compiler error fo…
nikhilmk-amd Dec 18, 2020
e997de2
[CPUPC-4974], [CPUPC-4975] Fixes for GenASiS runtime issues
shivaramaarao Dec 18, 2020
7042cfa
Shivarama's pr21 for genasis
ronlieb Dec 21, 2020
1214f2b
Shivarama's pr21 for genasis
ronlieb Dec 21, 2020
00255eb
CPUPC-5014 - [SLN] Debug support for cray pointer as parameter
alokkrsharma Dec 17, 2020
43895a5
[CPUPC-5009] Fix for runtime issues in gfc application
shivaramaarao Dec 22, 2020
fa261a7
Merge "CPUPC-5014 - [SLN] Debug support for cray pointer as parameter…
alokkrsharma Dec 22, 2020
24e4940
CPUPC-5004 - [SLN] Debug support for module arrays with pointer/alloc…
alokkrsharma Dec 18, 2020
8ae78f0
CPUPC-4516 Generating correct code when two reduction kernels are nex…
Dec 23, 2020
8b11788
CPUPC-4516 Fixing VE in 551
Dec 29, 2020
536e862
CPUPC-5051 Fix random check-flang fails
Dec 29, 2020
12804cb
[CPUPC-4929] - fix for hpc2020 benchmark 628.pot3d_s fails with stagi…
Jan 5, 2021
d87ef4a
CPUPC-5019 - [SLN] [DebugInfo] Flang hangs with -g for cross dependen…
alokkrsharma Dec 22, 2020
1c9ad62
CPUPC-4507 fix for compilation error with -Hq flag when the source fi…
bhuvanendrakumarn Nov 16, 2020
b85b780
[CPUPC-5065] workarounds for presubmit build failures
shivaramaarao Jan 6, 2021
519a9bd
Merge "[CPUPC-5065] workarounds for presubmit build failures" into am…
shivaramaarao Jan 7, 2021
aa515e0
Merge pull request #22 from ROCm-Developer-Tools/aomp11
ronlieb Jan 7, 2021
6aaff21
Merge "[CPUPC-4929] - fix for hpc2020 benchmark 628.pot3d_s fails wit…
Jan 8, 2021
03216cf
Revert "[CPUPC-4929] - fix for hpc2020 benchmark 628.pot3d_s fails wi…
shivaramaarao Jan 11, 2021
93d927c
Merge "Revert "[CPUPC-4929] - fix for hpc2020 benchmark 628.pot3d_s f…
shivaramaarao Jan 11, 2021
7251c7b
[CPUPC-5108] Mege code from amd-staging as on 2021_01_17 to amd-aa-st…
amd-orequest Jan 17, 2021
e529b03
[CPUPC-5108] Fixing errors in previous merge
shivaramaarao Jan 18, 2021
497cc9a
SWDEV-272521 failure with Reduction clause for complex data types
ronlieb Feb 11, 2021
5fc8b7b
SWDEV-272521 failure with Reduction clause for complex data types
ronlieb Feb 11, 2021
8c5f87e
Ckhpnt
ronlieb Feb 22, 2021
5ee74f1
Merge branch 'merge30' into mergeAocc30
ronlieb Feb 22, 2021
a7d9a29
Add aocc 30 sources
ronlieb Feb 23, 2021
54251e4
Add aocc 3.0 sources
ronlieb Feb 23, 2021
ac94e34
Restore reduction 2 regions fix
ronlieb Feb 24, 2021
67f5939
Flang fixes from AOCC for VASP
ronlieb Feb 24, 2021
9178e51
Add policy 57 for CMake
ronlieb Feb 24, 2021
8db99c5
Restore reduction 2 regions fix
ronlieb Feb 24, 2021
6e22f43
Flang fixes from AOCC for VASP
ronlieb Feb 24, 2021
ac51994
Add policy 57 for CMake
ronlieb Feb 24, 2021
ce9624d
Add f90deviceio print interface module, use f90deviceio
ronlieb Feb 27, 2021
656db00
Add f90deviceio print interface module, use f90deviceio
ronlieb Feb 27, 2021
2b75c9c
Add quamath.h
ronlieb Feb 26, 2021
e9c1101
Add quamath.h
ronlieb Feb 26, 2021
6ad08d3
[CPUPC-5108] merging flang changes to aa-stg branch
amd-orequest Mar 1, 2021
593d716
Post merge cleanup
ronlieb Mar 2, 2021
012cd6b
Post merge cleanup
ronlieb Mar 2, 2021
a785d3e
Fix missing return errors in 5 functions, compiler stricter
ronlieb Mar 10, 2021
56ebe18
Fix missing return errors in 5 functions, compiler stricter
ronlieb Mar 10, 2021
96f2361
more flang runtime fixes
ronlieb Mar 10, 2021
4a127bb
more flang runtime fixes
ronlieb Mar 10, 2021
a23f31b
[CPUPC-5547] flang side changes to make device library calls for comp…
shivaramaarao Mar 20, 2021
903ff8f
[ CPUPC-5222 ] - Array section support for assume size array
shivaramaarao Mar 24, 2021
9fa9701
[CPUPC-5547] flang side changes to make device library calls for comp…
shivaramaarao Mar 20, 2021
9a0699a
[ CPUPC-5222 ] - Array section support for assume size array
shivaramaarao Mar 24, 2021
92b615e
[CPUPC-5547] flang side changes to make device library calls for comp…
shivaramaarao Mar 20, 2021
9285609
[ CPUPC-5222 ] - Array section support for assume size array
shivaramaarao Mar 24, 2021
ac90ffb
[CPUPC-5568] Fixng the cam4_r regression
shivaramaarao Apr 5, 2021
bc92787
Fix issues reported by address sanitizer build. (#23)
estewart08 Apr 6, 2021
6a83a9e
Added $ORIGIN to rpath to promote portability (#5)
ronlieb Apr 6, 2021
825ae7a
Added additional hints for locating libomp.so.
ronlieb Apr 6, 2021
f167193
Added $ORIGIN to rpath to promote portability (#5)
ronlieb Apr 6, 2021
e6792dc
Added additional hints for locating libomp.so.
ronlieb Apr 6, 2021
445b2bd
Fix issues reported by address sanitizer build. (#23)
estewart08 Apr 6, 2021
f45e58b
[CPUPC-5637] Fix for compilation error with allocatable structures
shivaramaarao Apr 16, 2021
38fd983
[SWDEV-275490][CPUPC-5637] Fix for compilation error with allocatable…
shivaramaarao Apr 16, 2021
56b41b7
[SWDEV-275490][CPUPC-5637] Fix for compilation error with allocatable…
shivaramaarao Apr 16, 2021
2f064b3
Merge branch 'mergeAocc30' into amd-stg-openmp
ronlieb Apr 14, 2021
7a716a0
Merge branch 'twork' into amd-stg-openmp
ronlieb Apr 18, 2021
4445952
Merge branch 'amd-stg-openmp' into aomp-dev
ronlieb Apr 18, 2021
f83e732
Add code to imbed sha-key for flang1 flang2 ; grep for Flang Sha
ronlieb Apr 18, 2021
19c091e
Fixes for swdev-275472 swdev-272328
ronlieb Apr 28, 2021
183d759
Revert "Fixes for swdev-275472 swdev-272328"
ronlieb Apr 28, 2021
0f48928
flang Fixes for swdev-272343 swdev-270202 swdev-272328 swdev-275194
ronlieb Apr 28, 2021
51c84d7
Add back CMake code for FLANGRTI and libomp.so
ronlieb May 2, 2021
59075b0
remove call to ompaccell_create_globalctor because this is now done b…
gregrodgers May 4, 2021
64819a9
flang fix for swdev-275194 swlcsg-675
ronlieb May 5, 2021
069cb20
Add f90printl to do long (int64)
ronlieb May 5, 2021
f73d5fe
swdev-275194 - Another flang fix for if clause on target directive
ronlieb May 6, 2021
0386c29
Fix errors like
ronlieb May 22, 2021
20104ff
Add omp_target_is_present interface
ronlieb Jun 6, 2021
67b05d7
Merge pull request #24 from ROCm-Developer-Tools/fix-is-present
ronlieb Jun 6, 2021
52b4980
[CPUPC-5108] Merge flang code from amd-staging as of 03-06-2021 to am…
amd-orequest Jun 7, 2021
3fa7374
[CPUPC-5108] fixing the cam4_r compilation issue
amd-orequest Jun 8, 2021
02da1fe
Ignore git log returning an error.
estewart08 Jun 8, 2021
412a126
[CPUPC-5108] removing the tests that depend on llvm version
amd-orequest Jun 10, 2021
3c96d88
[ CPUPC-6021 ] - support for use_device_ptr outside target region
shivaramaarao Jun 17, 2021
36f247f
swdev-274983 flang use_device_ptr fix
ronlieb Jun 22, 2021
bb12bf9
assign ptr on device flang swdev-275472
ronlieb Jul 9, 2021
2647f0b
Merge branch 'local-aocc-flang' into aomp-dev
ronlieb Jul 18, 2021
8e02914
Add depenency for omp_lifb.F90 to iso_c_binding mod file
ronlieb Aug 15, 2021
ac4c9da
Fix the previous lib_omp cmake fix
ronlieb Aug 17, 2021
3491ee6
Fix 274775 flang
ronlieb Aug 27, 2021
3fb1e9f
Flang fix for DEVSW-273807 if parallel
ronlieb Sep 14, 2021
3a86a99
ckpnt work
ronlieb Sep 19, 2021
dadfa8e
swdev-302472 nowait
ronlieb Sep 21, 2021
4f1282c
Merge pull request #25 from ROCm-Developer-Tools/swdev-273759
ronlieb Sep 22, 2021
9280e91
__kmpc_spmd_kernel_init takes 2 args, not 3
ronlieb Dec 19, 2021
d5d710a
Merge pull request #26 from ROCm-Developer-Tools/fix_init_args
ronlieb Dec 20, 2021
158c567
Performance improvement for target offloaded loop collapse
bhuvanendrakumarn Dec 23, 2021
b9476fb
Merge pull request #27 from ROCm-Developer-Tools/aomp-dev-collapse-fix-4
dhruvachak Dec 23, 2021
eb5f3f4
Removed faulty code from "ckpnt work" commit
aperdeus-amd Dec 22, 2021
bf9b52f
Merge pull request #28 from aperdeus-amd/removed_depend_review
ronlieb Dec 23, 2021
f1c02c0
swdev-315455 fix compilation with debug info
DominikAdamski Dec 29, 2021
39eecd5
Merge pull request #29 from DominikAdamski/fixed_debuginfo
ronlieb Dec 29, 2021
f19e5a4
Cleanup for loop collapse codegen change
dhruvachak Dec 31, 2021
5214f57
Merge pull request #30 from ROCm-Developer-Tools/aomp-dev-collapse-fix-5
dhruvachak Dec 31, 2021
df88c90
Support for compilation specific wave size based on GPU architecture
aperdeus-amd Dec 31, 2021
9bdb5bd
Update ompaccel.h
aperdeus-amd Jan 3, 2022
e902485
Merge pull request #31 from aperdeus-amd/wave-size
ronlieb Jan 3, 2022
2b2fa5b
Ported in_reduction changes from AOCC compiler (#33)
aperdeus-amd Jan 13, 2022
1607297
Update kernel execution mode (#34)
DominikAdamski Jan 13, 2022
ace35bd
USM Unified Shared Memory + ctor fix (#35)
aperdeus-amd Jan 14, 2022
ee99df5
[perf] change to default static chunk for target
ronlieb Jan 15, 2022
de85249
Fixing the issues with multiple target creation in target parallel lo…
aperdeus-amd Jan 18, 2022
4a1a941
Use device addr implementation (#39)
aperdeus-amd Jan 18, 2022
7a85f3a
Fix for compilation abort for ESMF (#40)
aperdeus-amd Jan 18, 2022
fa956b8
Fix two segvs due to null derefs for -g (#36)
ronlieb Jan 18, 2022
a41885e
Generic spmd kernel poc (#41)
DominikAdamski Jan 27, 2022
a7a36d0
Fix for compilation error when `omp parallel do` in `omp declare targ…
DominikAdamski Jan 29, 2022
308f190
Revert "Fix for compilation error when `omp parallel do` in `omp decl…
ronlieb Jan 29, 2022
3497afc
Re-land Fix for compilation error when `omp parallel do` in `omp decl…
DominikAdamski Jan 29, 2022
3d3438b
CPUPC-6246 - UM model compilation issue fix (#43)
DominikAdamski Jan 30, 2022
2744318
fix if(0) flang-275194
ronlieb Feb 16, 2022
1d16cfd
fixing runtime issues (#44)
aperdeus-amd Feb 26, 2022
a955560
fix for swdev-321838
ronlieb Feb 27, 2022
1a51eb8
Fix 321847 - fix from Shivarama
ronlieb Mar 2, 2022
d20981f
devsw-305550 fix mapping structs
ronlieb Mar 5, 2022
092afa4
fix genasys gest
ronlieb Mar 10, 2022
4f9b300
Fix flang metadata issue
ronlieb Mar 12, 2022
57ac6f3
Fix conflicting types for alarm issue on centos-9 build. (#45)
estewart08 Mar 16, 2022
2061bb9
Fix for debug info generation for target (#46)
aperdeus-amd Mar 25, 2022
11aabd1
Fix for num_threads support in target omp pragma (#47)
aperdeus-amd Mar 29, 2022
270cb43
Fixed support in num_threads in "target parallel do" (#48)
aperdeus-amd Apr 4, 2022
b63bfb8
fixes for swdev-{322945 323137 329920}
ronlieb Apr 10, 2022
520e4d3
Unify initialization procedure. (#50)
DominikAdamski Apr 20, 2022
62866b5
Add -Wno-implicit-function-declaration to cmake flags for newer compi…
ronlieb Apr 21, 2022
3b4a75e
fixes for 325095 and 332112
ronlieb Apr 29, 2022
03f1799
Add -Wno-implicit-int to CMake C Flags
saiislam May 5, 2022
5c7a20c
Merge pull request #52 from ROCm-Developer-Tools/saiislam-wno-implici…
saiislam May 5, 2022
9a40f27
Fix flang-337105 overflow path
ronlieb May 14, 2022
f55a627
Add global definitions of OpenMP constants (#55)
DominikAdamski May 18, 2022
0c8ab2e
Provide correct declarations of OpenMP API functions (#56)
DominikAdamski May 20, 2022
4d82412
ROCm 5.3 package reorg. (#54)
raramakr May 24, 2022
959dd6f
Corrected the AMD Copyright Statement Notice.
Lynd98 Jun 10, 2022
4ac5d4b
Use GNUInstallDirs (#58)
raramakr Jun 16, 2022
db94b10
Fixes for SWDEV-299043 SWDEV-341152 SWDEV-329920
ronlieb Jun 16, 2022
4490930
Add GNUInstallDirs to libpgmath CMakeLists.txt
estewart08 Jun 17, 2022
77ea1ae
Fix for flang 340559
ronlieb Jun 22, 2022
433f518
Frontend fixes for 339749 and 339890 cabs, needs runtime cqabs cdabs
ronlieb Jun 22, 2022
600a803
Fix flang swdev-339906
ronlieb Jul 10, 2022
58ffbd7
Fix flang swdev-335474
ronlieb Jul 10, 2022
a277d13
Add flag -Wno-int-conversion to cover changing llvm defaults
ronlieb Jul 23, 2022
5fa7620
Fix for flang swdev-324643
ronlieb Jul 25, 2022
2a35576
Cleanup inadvertent unrelated commented files
ronlieb Jul 26, 2022
ffc5479
Use find_library instead of -l to find libquadmath. (#59)
estewart08 Aug 2, 2022
fbe80d7
Add flag -Wno-enum-constexpr-conversion
ronlieb Aug 9, 2022
8ff4926
Add flag-Wno-incompatible-function-pointer-types
ronlieb Aug 11, 2022
9467975
Do not attach attributes to kernel functions (#60)
DominikAdamski Aug 12, 2022
d99ff84
initial metadirective support , and converting 'loop' to 'target para…
ronlieb Aug 30, 2022
fdd03f9
Revert "fix genasys gest"
ronlieb Sep 18, 2022
7937607
suppress 30000+ warnings , nobody is going to fix
ronlieb Sep 21, 2022
43410ae
[SWDEV-352861] aliasing issue, NAS OMP CG, aomp issue 411
ronlieb Oct 3, 2022
4d13d8a
restore genasys gest patch, and add flag to allow 519 to
ronlieb Oct 25, 2022
7445846
Merge pull request #62 from ROCm-Developer-Tools/restore-gest-genasys…
raghavendhra Oct 25, 2022
392e693
[SWDEV-288641] Fix undefined symbol: __ps_powi_1 (#63)
DominikAdamski Nov 14, 2022
18810f7
fix for removal of --src-root from llvm-config (#64)
ronlieb Nov 15, 2022
f0677da
[SWDEV-318074] Fix undefined references to modulo functions in target…
DominikAdamski Nov 18, 2022
4b2e852
target reductions teams tweak -Mx,234,nn (#66)
ronlieb Dec 8, 2022
20a388e
Mx 234,nn to default to 0 instead of 32, allows OMP_NUM_TEAMS to be h…
ronlieb Dec 27, 2022
ad995d8
Handle argument mismatch in OpenMP kernel (#67)
DominikAdamski Feb 20, 2023
52d3410
[metadirectives] fixes spec accel2023 issues
ronlieb Feb 22, 2023
4b84802
[OpenMP] Fix type modification of mapped OpenMP variables (#68)
DominikAdamski Feb 22, 2023
a2aafc3
Generate weak linkage for flang kernels
ronlieb Mar 13, 2023
d4b0a51
Fix for flang-386800 emit DW_AT_string_length
ronlieb Mar 14, 2023
cf86cde
fix swdev-385680 [ORNLA-151] amdflang preprocessor confused by + on C…
ronlieb Mar 14, 2023
4b248a6
Clarify Flang name as Classic-Flang
ronlieb Mar 14, 2023
03e0f00
First pass at frozen legacy flang driver called flang-legacy
gregrodgers Apr 28, 2023
b824e0f
Add debug stmts for combo_mode
ronlieb May 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
89 changes: 73 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,22 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#
# Modifications Copyright (c) 2019 Advanced Micro Devices, Inc. All rights reserved.
# Notified per clause 4(b) of the license.
#
# Last Modified: May 2020
#

cmake_minimum_required(VERSION 2.8)
cmake_policy(SET CMP0057 NEW)

if(${ENABLE_DEVEL_PACKAGE})
set(DEVEL_PACKAGE "devel/")
endif()
if(${ENABLE_RUN_PACKAGE})
set(RUN_PACKAGE "runtime/")
endif()

# In order to bootstrap the runtime library we need to skip
# CMake's Fortran tests
Expand Down Expand Up @@ -53,7 +67,9 @@ set(CMAKE_HOST_SYSTEM_PROCESSOR ${TARGET_ARCHITECTURE})
# standalone project, using LLVM as an external library:
if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
project(Flang)

# Set default libdir to be "lib" for ROCm, distros will override this anyway:
set(CMAKE_INSTALL_LIBDIR "lib" CACHE STRING "Library install directory")
include(GNUInstallDirs)
# Rely on llvm-config.
set(CONFIG_OUTPUT)

Expand All @@ -68,8 +84,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
"--bindir"
"--libdir"
"--includedir"
"--prefix"
"--src-root")
"--prefix")
execute_process(
COMMAND ${CONFIG_COMMAND}
RESULT_VARIABLE HAD_ERROR
Expand Down Expand Up @@ -133,6 +148,9 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
option(LLVM_INSTALL_TOOLCHAIN_ONLY
"Only include toolchain files in the 'install' target." OFF)

option(LLVM_INSTALL_RUNTIME
"Build and install the flang runtime. Do this last" OFF)

option(LLVM_FORCE_USE_OLD_HOST_TOOLCHAIN
"Set to ON to force using an old, unsupported host toolchain." OFF)

Expand Down Expand Up @@ -172,6 +190,8 @@ Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
set(LLVM_UTILS_PROVIDED ON)
endif()

if (NOT LLVM_INSTALL_RUNTIME)

if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
set(LLVM_LIT ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
if(NOT LLVM_UTILS_PROVIDED)
Expand All @@ -181,6 +201,7 @@ Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
set(LLVM_UTILS_PROVIDED ON)
set(FLANG_TEST_DEPS FileCheck count not)
endif()
endif()
#set(UNITTEST_DIR ${LLVM_MAIN_SRC_DIR}/utils/unittest)
#if(EXISTS ${UNITTEST_DIR}/googletest/include/gtest/gtest.h
# AND NOT EXISTS ${LLVM_LIBRARY_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX}
Expand Down Expand Up @@ -276,19 +297,23 @@ else()
set(FLANG_HAS_VERSION_PATCHLEVEL 0)
endif()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fcommon -Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion -Wno-enum-constexpr-conversion -Wno-incompatible-function-pointer-types -w")

# Add appropriate flags for GCC
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -g -DOMP_OFFLOAD_LLVM -Wno-implicit-function-declaration -Wno-implicit-int -Wno-enum-constexpr-conversion -Wno-incompatible-function-pointer-types -w")
option(WITH_WERROR "Compile with '-Werror' C compiler flag" ON)
if (WITH_WERROR)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
endif ()
endif ()

if (APPLE)
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-flat_namespace -Wl,-undefined -Wl,suppress")
endif ()

find_library(LIBQUADMATH_LOC quadmath NAMES libquadmath.so libquadmath.so.0 REQUIRED)

macro(add_flang_library name)
llvm_process_sources(srcs ${ARGN})
if (MODULE)
Expand All @@ -305,13 +330,13 @@ macro(add_flang_library name)
endif( LLVM_COMMON_DEPENDS )

llvm_config( ${name} ${LLVM_LINK_COMPONENTS} )
target_link_libraries( ${name} ${LLVM_COMMON_LIBS} )
target_link_libraries( ${name} ${LLVM_COMMON_LIBS} ${LIBQUADMATH_LOC})
# link_system_libs( ${name} ) # getd of cmake warning messages

install(TARGETS ${name}
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}
RUNTIME DESTINATION bin)
LIBRARY DESTINATION ${RUN_PACKAGE}${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${RUN_PACKAGE}${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${DEVEL_PACKAGE}${CMAKE_INSTALL_BINDIR})
set_target_properties(${name} PROPERTIES FOLDER "Flang libraries")
endmacro(add_flang_library)

Expand All @@ -328,16 +353,18 @@ include_directories(BEFORE
# Direct module files to build include directory
set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include)

if (FLANG_BUILD_RUNTIME)
# Install Fortran module files
install(DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/
DESTINATION include
DESTINATION ${DEVEL_PACKAGE}${CMAKE_INSTALL_INCLUDEDIR}
)
endif()

# Install Fortran OpenMP include file
# Copy omp_lib.h file, not the symlink
get_filename_component(OMP_LIB_H_PATH ${CMAKE_CURRENT_SOURCE_DIR}/include/omp_lib.h REALPATH)
install(FILES ${OMP_LIB_H_PATH}
DESTINATION include
DESTINATION ${DEVEL_PACKAGE}${CMAKE_INSTALL_INCLUDEDIR}
)

add_definitions( -D_GNU_SOURCE )
Expand All @@ -353,6 +380,22 @@ mark_as_advanced(FLANG_EXECUTABLE_VERSION LIBFLANG_LIBRARY_VERSION)

option(FLANG_LLVM_EXTENSIONS "enable the Flang LLVM extensions" OFF)

if ( FLANG_EXECUTABLE_VERSION )
add_definitions( -DFLANG_VERSION="${FLANG_EXECUTABLE_VERSION} " )
add_definitions( -DFLANG_VERSION_MAJOR="${FLANG_VERSION_MAJOR} " )
add_definitions( -DFLANG_VERSION_MINOR="${FLANG_VERSION_MINOR} " )
endif()
execute_process(COMMAND git log -1 --format=format:%H WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE FLANG_SHA RESULT_VARIABLE rc)

if(NOT rc EQUAL "0")
add_definitions( -DFLANG_SHA="Classic-Flang Sha NULL ")
message("Warning: Unable to get Classic-Flang Sha. Return Code: ${rc} Classic-Flang Sha: NULL!!!")
else()
string(STRIP ${FLANG_SHA} FLANG_SHA)
message(STATUS "MY_VAR=${FLANG_SHA}")
add_definitions( -DFLANG_SHA="Classic-Flang Sha ${FLANG_SHA} ")
endif()

option(FLANG_INCLUDE_TESTS
"Generate build targets for the Flang unit tests."
${LLVM_INCLUDE_TESTS})
Expand All @@ -367,11 +410,14 @@ set(FLANG_LIB_DIR ${CMAKE_CURRENT_BINARY_DIR}/lib)
set(FLANG_RTE_LIB_DIR ${CMAKE_CURRENT_BINARY_DIR}/lib)
add_definitions( -DPGFLANG )

add_subdirectory(lib)
add_subdirectory(runtime)
add_subdirectory(utils)
add_subdirectory(tools)
#add_subdirectory(test)
if (LLVM_INSTALL_RUNTIME)
add_subdirectory(runtime)
else()
add_subdirectory(lib)
add_subdirectory(utils)
add_subdirectory(tools)
#add_subdirectory(test)
endif()

#option(FLANG_BUILD_EXAMPLES "Build FLANG example programs by default." OFF)
#if (FLANG_BUILD_EXAMPLES)
Expand All @@ -386,6 +432,17 @@ if (FLANG_OPENMP_GPU_NVIDIA)
add_definitions("-DOMP_OFFLOAD_LLVM")
endif()

# AOCC Begin
option(FLANG_OPENMP_GPU_AMD "Enable OpenMP AMD Accelerator Offload." OFF)
if (FLANG_OPENMP_GPU_AMD)
add_definitions("-DOMP_OFFLOAD_AMD")
endif()

if (FLANG_OPENMP_GPU_NVIDIA OR FLANG_OPENMP_GPU_AMD)
set(OMP_OFFLOADING_BUILD 1)
endif()
# AOCC End

if( FLANG_INCLUDE_TESTS )
# if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include/gtest/gtest.h)
# add_subdirectory(unittests)
Expand Down
2 changes: 1 addition & 1 deletion docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ if (LLVM_ENABLE_DOXYGEN)

if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/web/html
DESTINATION docs/html)
DESTINATION ${DEVEL_PACKAGE}docs/html)
endif()
endif()
endif()
Expand Down
Loading