Skip to content

Commit

Permalink
use minimal hip includes (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
TorreZuk committed Jul 26, 2024
1 parent 109fc1a commit 59a1305
Show file tree
Hide file tree
Showing 22 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion BuildTools/CMake/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "error_macros.h"
#include <assert.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Extensions/gemm_ex_bf16_r/gemm_ex_bf16_r.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Extensions/gemm_ex_f16_r/gemm_ex_f16_r.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */
#include "helpers.hpp"
#include <cmath>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Extensions/gemm_ex_f32_r/gemm_ex_f32_r.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Extensions/gemm_ex_i8_i32_r/gemm_ex_i8_i32_r.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Languages/C/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "error_macros.h"
#include <assert.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Languages/HIP/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "error_macros.h"
#include <assert.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Level-1/axpy/axpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Level-1/dot/dot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Level-1/nrm2/nrm2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Level-1/scal/scal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Level-1/swap/swap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Level-2/gemv/gemv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Level-2/her/her.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "helpers.hpp"
#include <complex>
#include <hip/hip_complex.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Level-3/gemm/gemm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Level-3/gemm_strided_batched/gemm_strided_batched.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <rocblas/rocblas.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Patterns/Multi-device/Multi-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <omp.h>
#include <rocblas/rocblas.h>
Expand Down
2 changes: 1 addition & 1 deletion Patterns/Multi-stream/Multi-stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* ************************************************************************ */

#include "helpers.hpp"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <math.h>
#include <omp.h>
#include <rocblas/rocblas.h>
Expand Down
2 changes: 1 addition & 1 deletion common/ArgParser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#pragma once

#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <map>
#include <math.h>
#include <rocblas/rocblas.h>
Expand Down
2 changes: 1 addition & 1 deletion common/error_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#pragma once

#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <rocblas/rocblas.h>
#include <stdlib.h>

Expand Down
4 changes: 3 additions & 1 deletion common/memoryHelpers.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/* ************************************************************************
* Copyright (C) 2019-2022 Advanced Micro Devices, Inc. All rights reserved.
*
Expand All @@ -22,9 +23,10 @@

#pragma once
#include "error_macros.h"
#include <cassert>
#include <cinttypes>
#include <cstdio>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <locale.h>
#include <random>
#include <stdlib.h>
Expand Down
4 changes: 3 additions & 1 deletion common/timers.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/* ************************************************************************
* Copyright (C) 2019-2022 Advanced Micro Devices, Inc. All rights reserved.
*
Expand All @@ -19,11 +20,12 @@
* CTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* ************************************************************************ */

#pragma once
#include "error_macros.h"
#include <chrono>
#include <cstdio>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <iostream>

namespace helpers
Expand Down

0 comments on commit 59a1305

Please sign in to comment.