<commit_before>if(NOT _BUILD_CUDA_KERNEL)
  find_package(CUDA REQUIRED)
  if(NOT ${CUDA_FOUND})
     message(FATAL "Could not find CUDA")
  endif()

  macro(generate_cuda_ptx_wrappers KERNELSPTX KERNELSCXX)

    set(PTX_FILES "")
    set(CU_FILES "")

    foreach(file ${ARGN})
      if(${file} MATCHES ".*\\.cu$")
        list(APPEND CU_FILES ${file})
      endif()
    endforeach()

    CUDA_COMPILE_PTX(KernelsPTX ${CU_FILES})

    foreach(file ${KernelsPTX})
      if(${file} MATCHES ".*\\.ptx$")
        get_filename_component(FilterName ${file} NAME_WE)
        string(REGEX REPLACE ".*generated_" "" KernelName ${FilterName})
        list(APPEND PTX_FILES ${file})
        list(APPEND CUDAKERNELS
          "${CMAKE_CURRENT_BINARY_DIR}/${KernelName}CudaKernel.cxx")
      endif()
    endforeach()

    add_custom_command(
      OUTPUT ${CUDAKERNELS}
      DEPENDS ${PTX_FILES}
      COMMAND ${CMAKE_COMMAND} ARGS
        -D "_BUILD_CUDA_KERNEL=TRUE"
        -D "PTXKernels:STRING=${PTX_FILES}"
        #-P "${CMAKE_SOURCE_DIR}/Modules/External/ITKCudaCommon/CMake/itkCUDA.cmake" # call to itself!
	    -P "${ITKCudaCommon_SOURCE_DIR}/CMake/itkCUDA.cmake" # call to itself!<commit_msg>Missing quotes were leading cmake to believe that a source directory was passed<commit_after>if(NOT _BUILD_CUDA_KERNEL)
  find_package(CUDA REQUIRED)
  if(NOT ${CUDA_FOUND})
     message(FATAL "Could not find CUDA")
  endif()

  macro(generate_cuda_ptx_wrappers KERNELSPTX KERNELSCXX)

    set(PTX_FILES "")
    set(CU_FILES "")

    foreach(file ${ARGN})
      if(${file} MATCHES ".*\\.cu$")
        list(APPEND CU_FILES ${file})
      endif()
    endforeach()

    CUDA_COMPILE_PTX(KernelsPTX ${CU_FILES})

    foreach(file ${KernelsPTX})
      if(${file} MATCHES ".*\\.ptx$")
        get_filename_component(FilterName ${file} NAME_WE)
        string(REGEX REPLACE ".*generated_" "" KernelName ${FilterName})
        list(APPEND PTX_FILES ${file})
        list(APPEND CUDAKERNELS
          "${CMAKE_CURRENT_BINARY_DIR}/${KernelName}CudaKernel.cxx")
      endif()
    endforeach()

    add_custom_command(
      OUTPUT ${CUDAKERNELS}
      DEPENDS ${PTX_FILES}
      COMMAND ${CMAKE_COMMAND} ARGS
        -D "_BUILD_CUDA_KERNEL=TRUE"
        -D "PTXKernels:STRING=\"${PTX_FILES}\""
	-P "${ITKCudaCommon_SOURCE_DIR}/CMake/itkCUDA.cmake" # call to itself!
{'fraction_non_alphanumeric': 0.13432835820895522, 'fraction_numerical': 0.0, 'mean_word_length': 3.393258426966292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6976714', 'n_tokens_mistral': 915, 'n_tokens_neox': 856, 'n_words': 150}