-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current approach to enabling CUDA support in the bandwidth benchmarks with an environment variable that takes that path to an include file is extremely fragile. As a low-hanging fruit, this commit brings the CUDA configuration closer to ROCm, but relying on a flag to enable the feature and AC_SEARCH_LIBS to update lib flags, or on --with-cuda allowing a user to provide a custom installation path. Ideally, we should rely on dlopen()'ing the symbols we need from these libraries so a single build of perftest can work on systems with and without CUDA SDK, but that's to come later. Signed-off-by: Raghu Raja <[email protected]>
- Loading branch information
Showing
2 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ | |
#endif | ||
|
||
#ifdef HAVE_CUDA | ||
#include CUDA_PATH | ||
#include <cuda.h> | ||
#endif | ||
|
||
#ifdef HAVE_ROCM | ||
|