diff --git a/Samples/8_Platform_Specific/Tegra/CMakeLists.txt b/Samples/8_Platform_Specific/Tegra/CMakeLists.txt index c1a65040..356c2a13 100644 --- a/Samples/8_Platform_Specific/Tegra/CMakeLists.txt +++ b/Samples/8_Platform_Specific/Tegra/CMakeLists.txt @@ -5,7 +5,7 @@ add_subdirectory(cuDLAHybridMode) add_subdirectory(cuDLALayerwiseStatsHybrid) add_subdirectory(cuDLALayerwiseStatsStandalone) add_subdirectory(cuDLAStandaloneMode) -#add_subdirectory(EGLSync_CUDAEvent_Interop) +add_subdirectory(EGLSync_CUDAEvent_Interop) add_subdirectory(fluidsGLES) add_subdirectory(nbody_opengles) add_subdirectory(simpleGLES) diff --git a/Samples/8_Platform_Specific/Tegra/EGLSync_CUDAEvent_Interop/CMakeLists.txt b/Samples/8_Platform_Specific/Tegra/EGLSync_CUDAEvent_Interop/CMakeLists.txt index 90ad2f3b..b75b8356 100644 --- a/Samples/8_Platform_Specific/Tegra/EGLSync_CUDAEvent_Interop/CMakeLists.txt +++ b/Samples/8_Platform_Specific/Tegra/EGLSync_CUDAEvent_Interop/CMakeLists.txt @@ -17,7 +17,7 @@ else() endif() # Include directories and libraries -include_directories(../../../Common) +include_directories(../../../../Common) find_package(EGL) find_package(X11) diff --git a/Samples/8_Platform_Specific/Tegra/EGLSync_CUDAEvent_Interop/EGLSync_CUDAEvent_Interop.cu b/Samples/8_Platform_Specific/Tegra/EGLSync_CUDAEvent_Interop/EGLSync_CUDAEvent_Interop.cu index 1c459c5c..9e709a16 100644 --- a/Samples/8_Platform_Specific/Tegra/EGLSync_CUDAEvent_Interop/EGLSync_CUDAEvent_Interop.cu +++ b/Samples/8_Platform_Specific/Tegra/EGLSync_CUDAEvent_Interop/EGLSync_CUDAEvent_Interop.cu @@ -259,7 +259,8 @@ void checkSync(int argc, char **argv) unsigned char *pSurf_read = NULL, *pSurf_write = NULL; int integrated; - CUresult status = CUDA_SUCCESS; + CUresult status = CUDA_SUCCESS; + CUctxCreateParams ctxCreateParams = {}; // Init values for variables x = y = 0; @@ -269,7 +270,7 @@ void checkSync(int argc, char **argv) } device = findCudaDeviceDRV(argc, (const char **)argv); - if (CUDA_SUCCESS != (status = cuCtxCreate(&context, 0, device))) { + if (CUDA_SUCCESS != (status = cuCtxCreate(&context, &ctxCreateParams, 0, device))) { printf("failed to create CUDA context\n"); } cuCtxPushCurrent(context);