Skip to content

Commit

Permalink
[HIPIFY][tests][Linux][fix] Use explicit GL include for CUDA_VERSION …
Browse files Browse the repository at this point in the history
…<= 9020

+ Affects only GL tests
+ Either CUDA samples (where GL is shipped) or `freeglut3` should be installed
  • Loading branch information
emankov committed Feb 6, 2024
1 parent b9ab400 commit fb2afe6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit_tests/synthetic/driver_enums.cu
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#if defined(_WIN32)
#include "windows.h"
#include <GL/glew.h>
#elif CUDA_VERSION <= 9020
#include <GL/glew.h>
#endif
#include "cudaGL.h"

Expand Down
2 changes: 2 additions & 0 deletions tests/unit_tests/synthetic/driver_functions.cu
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#if defined(_WIN32)
#include "windows.h"
#include <GL/glew.h>
#elif CUDA_VERSION <= 9020
#include <GL/glew.h>
#endif
#include "cudaGL.h"
#include "cudaProfiler.h"
Expand Down
2 changes: 2 additions & 0 deletions tests/unit_tests/synthetic/driver_functions_internal.cu
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#if defined(_WIN32)
#include "windows.h"
#include <GL/glew.h>
#elif CUDA_VERSION <= 9020
#include <GL/glew.h>
#endif
#include "cudaGL.h"

Expand Down

0 comments on commit fb2afe6

Please sign in to comment.