Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion srock-bin/build_cmake.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

#
#Copyright © Advanced Micro Devices, Inc., or its affiliates.
#
#SPDX-License-Identifier: MIT
#
SUPPLEMENTAL_COMPONENTS=${SUPPLEMENTAL_COMPONENTS:-openmpi silo hdf5 fftw ninja}
PREREQUISITE_COMPONENTS=${PREREQUISITE_COMPONENTS:-cmake rocmsmilib hwloc aqlprofile rocm-core}

Expand Down
5 changes: 5 additions & 0 deletions srock-bin/build_srock.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash
#
#Copyright © Advanced Micro Devices, Inc., or its affiliates.
#
#SPDX-License-Identifier: MIT
#
#
# build_srock.sh: Clone and build TheRock with amd-staging compiler.
#
# --- Start standard header to set SROCK environment variables ----
Expand Down
4 changes: 4 additions & 0 deletions srock-bin/create_patch.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
#
#Copyright © Advanced Micro Devices, Inc., or its affiliates.
#
#SPDX-License-Identifier: MIT
#
# tr_create_patch.sh : Build set of patches to TheRock including submodules
#
# --- Start standard header to set AOMP environment variables ----
Expand Down
4 changes: 4 additions & 0 deletions srock-bin/prebuild_srock.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
#
#Copyright © Advanced Micro Devices, Inc., or its affiliates.
#
#SPDX-License-Identifier: MIT
#
# prebuild_srock.sh: Source this file from build_srock.sh
# update the srock repo
# clone or update hipfort repo
Expand Down
4 changes: 4 additions & 0 deletions srock-bin/srock_common_vars
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
#
#Copyright © Advanced Micro Devices, Inc., or its affiliates.
#
#SPDX-License-Identifier: MIT
#
# srock_common_vars: This file is sourced by srock scripts to set
# set common SROCK environment variables.
#
Expand Down
4 changes: 4 additions & 0 deletions test/smoke-asan/hip-managed-hbo/hip-managed-hbo.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright © Advanced Micro Devices, Inc., or its affiliates.
//
// SPDX-License-Identifier: MIT

#define __HIP_PLATFORM_AMD__ 1
#include <hip/hip_runtime.h>

Expand Down
4 changes: 4 additions & 0 deletions test/smoke-asan/hip-managed-uaf/hip-managed-uaf.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright © Advanced Micro Devices, Inc., or its affiliates.
//
// SPDX-License-Identifier: MIT

#define __HIP_PLATFORM_AMD__ 1
#include <hip/hip_runtime.h>

Expand Down
4 changes: 4 additions & 0 deletions test/smoke-dev/aomp-issue376/aomp-issue376.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */

/* Based on https://github.com/ROCm/aomp/issues/376 */

#include <stdio.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include <stdio.h>
/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */

#include <stdio.h>
int main () {
int a[1024];
int i,j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */

#include <stdio.h>
#include <omp.h>

Expand Down
5 changes: 5 additions & 0 deletions test/smoke-dev/veccopy-ompt-target-cmake/performBuildRun.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
#
#Copyright © Advanced Micro Devices, Inc., or its affiliates.
#
#SPDX-License-Identifier: MIT
#
set -x

usage() { echo "Usage: $0 [-a <AOMP directory>]" \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright © Advanced Micro Devices, Inc., or its affiliates.
//
// SPDX-License-Identifier: MIT

#include <stdio.h>

#include "OmptTester.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */
#include <stdio.h>
#include <assert.h>
#include <omp.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */
#include <assert.h>
#include <omp.h>
#include <stdio.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */
#include <assert.h>
#include <omp.h>
#include <stdio.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */

#include <assert.h>
#include <omp.h>
#include <stdio.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */

#include <assert.h>
#include <omp.h>
#include <stdio.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */
#include <stdio.h>
#include <assert.h>
#include <omp.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */

#include <stdio.h>
#include <omp.h>

Expand Down
4 changes: 4 additions & 0 deletions test/smoke-dev/veccopy-ompt-target/veccopy-ompt-target.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */

#include <stdio.h>
#include <omp.h>

Expand Down
4 changes: 4 additions & 0 deletions test/smoke-dev/xteam-red-teams/xteam_red_teams.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT */

#include <stdio.h>
#include <omp.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
! RUN: %flang %flags %openmp_flags -fopenmp-version=60 %s -o %t.exe
! RUN: %t.exe | FileCheck %s --match-full-lines

Expand Down
6 changes: 5 additions & 1 deletion test/smoke-fort-dev/chk-intdo/intdo.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
! RUN: %flang %flags %openmp_flags -fopenmp-version=60 %s -o %t.exe
! RUN: %t.exe | FileCheck %s --match-full-lines

Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-dev/device_aassign/device_aassign.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
module mod
implicit none
contains
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-dev/device_intrinsics/device_intrinsics.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
module mod
implicit none
contains
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-dev/flang-315421/ft_data.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
!---------------------------------------------------------------------
!---------------------------------------------------------------------
!
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-dev/flang-315421/npbparams.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
! CLASS = A
!
!
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-dev/flang-315421/randdp.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
!---------------------------------------------------------------------
!---------------------------------------------------------------------

Expand Down
4 changes: 4 additions & 0 deletions test/smoke-fort-dev/flang-494405/flang-494405.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright © Advanced Micro Devices, Inc., or its affiliates.

# SPDX-License-Identifier: MIT

# flang-494405.py
# LLM: ChatGPT-4o (OpenAI), 2024-06-08
#
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-dev/flang-494405/redprob.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
function glsc3_acc(a,b,mult,n)
real a(n),b(n),mult(n)
real tmp,work(1)
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-dev/flang-544421-2/repro_544421-2.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
module reproducer_mod
contains
subroutine branching_target_call(dt, dt2, dt3, switch, switch2, switch3)
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-dev/flang-544421/repro_544421.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
module reproducer_mod
contains
subroutine branching_target_call(dt, switch)
Expand Down
4 changes: 4 additions & 0 deletions test/smoke-fort-dev/flang-nestRed/flang-nestRed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
# Copyright © Advanced Micro Devices, Inc., or its affiliates.

# SPDX-License-Identifier: MIT

"""
LLM: Claude 3.5 Sonnet
Date: December 2024
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-dev/flang-nestRed/redprob.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
function glsc3_acc(a,b,mult,n)
real a(n),b(n),mult(n)
real tmp,work(1)
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-dev/nwchem-s1_1/nwchem-s1_1.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
! mimic NWChem tgt_sd_t_s1_1 kernel
! RL: do not redefine simd clause to be schedule(static, 1)
! RL: make the schedule clause usage be explicit
Expand Down
4 changes: 4 additions & 0 deletions test/smoke-fort-dev/nwchem-s1_1/printTime.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
# Copyright © Advanced Micro Devices, Inc., or its affiliates.

# SPDX-License-Identifier: MIT

# flang-494405.py
# LLM: GPT-4
# Date: 2025-08-20
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-fails/flang-535320/test.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
module foo

contains
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-fails/flang-535416-O0/test.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
MODULE rep2
implicit none
public :: nvars
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-fails/flang-535416-O2/test.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
MODULE rep2
implicit none
public :: nvars
Expand Down
5 changes: 5 additions & 0 deletions test/smoke-fort-fails/flang-537499/test.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
program main
implicit none

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
! compile with:
!
! amdflang -O2 -fopenmp --offload-arch=gfx90a -o split_teams_distribute_parallel_do split_teams_distribute_parallel_do.f90
Expand Down Expand Up @@ -45,4 +50,4 @@ program hierarchical
end do
end do
print *, 'Success!!!'
end program hierarchical
end program hierarchical
5 changes: 5 additions & 0 deletions test/smoke-fort-fails/flang-550360/parameter_dsa.f90
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
program shrd
implicit none
integer, parameter :: n = 7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
program test
implicit none
integer :: i
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
program test
implicit none
integer :: i
Expand Down
Loading