message: forward optimization flags to nvcc
diff: @@ -13,7 +13,7 @@ option(ENOKI_PYTHON "Build pybind11 interface to CUDA & automatic differentiat
  if (ENOKI_CUDA)
  set(ENOKI_CUDA_COMPUTE_CAPABILITY "61" CACHE STRING "Compute capability as specified by https://developer.nvidia.com/cuda-gpus")
  - set(CMAKE_CUDA_FLAGS "-gencode arch=compute_${ENOKI_CUDA_COMPUTE_CAPABILITY},code=compute_${ENOKI_CUDA_COMPUTE_CAPABILITY} -cudart shared")
  + set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -gencode arch=compute_${ENOKI_CUDA_COMPUTE_CAPABILITY},code=compute_${ENOKI_CUDA_COMPUTE_CAPABILITY} -cudart shared")
  if (NOT WIN32)
  set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler -march=native -Xcompiler -fvisibility=hidden")
  endif()
  @@ -49,6 +49,9 @@ if (MSVC)
  else()
  set(ENOKI_ARCH_FLAGS_FILE archflags_unix.cpp)
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
  + if (ENOKI_CUDA AND CMAKE_BUILD_TYPE MATCHES "Release")
  + set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -O3 -DNDEBUG")
  + endif()
  endif()
  # Clang refuses -march=native on ARM machines
  