mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-08-23 23:35:31 +08:00
Bug 5274280: Enable 8_Platform_Specific/Tegra/EGLSync_CUDAEvent_Interop
This commit is contained in:
parent
2ec9cf394a
commit
8f33cc6094
@ -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)
|
||||
|
@ -17,7 +17,7 @@ else()
|
||||
endif()
|
||||
|
||||
# Include directories and libraries
|
||||
include_directories(../../../Common)
|
||||
include_directories(../../../../Common)
|
||||
|
||||
find_package(EGL)
|
||||
find_package(X11)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user