Skip to content

Commit

Permalink
Fix build without cuda
Browse files Browse the repository at this point in the history
Signed-off-by: Bensuperpc <[email protected]>
  • Loading branch information
bensuperpc committed Jul 10, 2022
1 parent de9a244 commit c20dc37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/GTA_SA_cheat_finder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ void GTA_SA::run()
std::cout << "" << std::endl;
}

#if !defined(BUILD_WITH_CUDA)
void GTA_SA::cuda_runner()
{
if ((max_range - min_range) < cuda_block_size) {
Expand All @@ -174,6 +175,7 @@ void GTA_SA::cuda_runner()
std::make_tuple(index_results[i], std::string(tmpCUDA.data()), jamcrc_results[i], cheat_list_name.at(index)));
}
}
#endif

void GTA_SA::cpu_runner(const std::uint64_t i)
{
Expand Down
2 changes: 2 additions & 0 deletions source/GTA_SA_cheat_finder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class GTA_SA
public:
GTA_SA();
void cpu_runner(const std::uint64_t i);
#if !defined(BUILD_WITH_CUDA)
void cuda_runner();
#endif
void run();
void clear();
/**
Expand Down

0 comments on commit c20dc37

Please sign in to comment.