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
1 change: 0 additions & 1 deletion hipfile/include/hipfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>

#if defined(__GNUC__)
Expand Down
2 changes: 2 additions & 0 deletions hipfile/src/nvidia_detail/hipfile-cufile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "hipfile-cufile.h"

#include <climits>
#include <cuda.h>
#include <hip/hip_runtime_api.h>
#include <stdexcept>

hipFileOpError_t
Expand Down
7 changes: 7 additions & 0 deletions hipfile/src/nvidia_detail/hipfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
* SPDX-License-Identifier: MIT
*/

#include "hipfile.h"
#include "hipfile-cufile.h"
#include "hipfile-types.h"

#include <cuda.h>
#include <cufile.h>
#include <driver_types.h>
#include <hip/hip_runtime_api.h>
#include <sys/types.h>
#include <vector>

using namespace std;
Expand Down
11 changes: 9 additions & 2 deletions hipfile/test/hipfile-cufile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@

#include "hipfile.h"
#include "hipfile-cufile.h"
#include "test-common.h"

#include "hipfile-warnings.h"
#include "invalid-enum.h"
#include "test-common.h"

#include <gtest/gtest.h>
#include <hip/hip_runtime_api.h>
#include <memory>
#include <stdexcept>

#ifdef __HIP_PLATFORM_NVIDIA__
#include <cuda.h>
#include <cufile.h>
#endif

// Put tests inside the macros to suppress the global constructor
// warnings
Expand Down
4 changes: 4 additions & 0 deletions hipfile/test/system/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#include <time.h>
#include <vector>

#ifdef __HIP_PLATFORM_NVIDIA__
#include <driver_types.h>
#endif

using namespace std;

extern SystemTestOptions test_env;
Expand Down