Skip to content

Commit 53f30d9

Browse files
committed
[cudauvm] Print if cudaMemAdvise or cudaMemPrefetchAsync is disabled
1 parent a4fdf77 commit 53f30d9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cudauvm/bin/main.cc

+7
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ int main(int argc, char** argv) {
8888
}
8989
std::cout << "Found " << numberOfDevices << " devices" << std::endl;
9090

91+
#ifdef CUDAUVM_DISABLE_ADVICE
92+
std::cout << "cudaMemAdvise() calls are disabled" << std::endl;
93+
#endif
94+
#ifdef CUDAUVM_DISABLE_PREFETCH
95+
std::cout << "cudaMemPrefetchAsync() calls are disabled" << std::endl;
96+
#endif
97+
9198
// Initialize EventProcessor
9299
std::vector<std::string> edmodules;
93100
std::vector<std::string> esmodules;

0 commit comments

Comments
 (0)