]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove support for CUDA files
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 31 Oct 2022 13:06:29 +0000 (09:06 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 31 Oct 2022 13:06:29 +0000 (09:06 -0400)
12 files changed:
contrib/utilities/checkdoxygen.py
contrib/utilities/count_lines.sh
contrib/utilities/indent
contrib/utilities/indent-all
contrib/utilities/indent.py
doc/doxygen/scripts/make_step.pl
doc/doxygen/scripts/program2doxygen
doc/doxygen/tutorial/CMakeLists.txt
include/CMakeLists.txt
source/base/CMakeLists.txt
tests/cuda/matrix_vector_common.h
tests/quick_tests/CMakeLists.txt

index 2b21bb556afcdfbf1e903d30d49956d2a71a594c..2566a7dbd9391a1d2057781bd505e35211a2c8f7 100755 (executable)
@@ -121,12 +121,8 @@ if 'intro.dox' in filename:
     # get results.dox
     resultsname = filename.split('intro.dox',1)[0] + 'results.dox'
     
-    # try to open the '.cc' file, otherwise try to open a '.cu' file
-    try:
-        fstep = open(stepname)
-    except IOError:
-        stepname = stepname[:-2] + 'cu'
-        fstep = open(stepname)
+    # open the '.cc' file:
+    fstep = open(stepname)
 
     lines += fstep.readlines()
     fstep.close()
index 0ddb1f7a175d442a0b6c155712638a30db96a8b0..7634f0182dbf3ae6c92a0048de57fb906702ec4c 100755 (executable)
 #
 # The output of this file consists of three numbers per line, showing
 #   date source-lines test-lines
-# displaying the number of lines of code in .h and .cc files (and .cu and
-# .cuh files for CUDA), but excluding files in contributed libraries. The
-# resulting output can be piped into a data file and then be visualized
-# by importing into a spreadsheet, or using the following GNUPLOT script:
+# displaying the number of lines of code in .h and .cc files, but excluding
+# files in contributed libraries. The resulting output can be piped into a data
+# file and then be visualized by importing into a spreadsheet, or using the
+# following GNUPLOT script:
 #
 #  set xdata time
 #  set timefmt "%Y-%m-%d"
@@ -106,7 +106,7 @@ for commit in $commits ; do
   
   date=$(git log --date=short --format="%ad" -n 1)
 
-  files_source=$(find . -name '*.h' -or -name '*.cc' -or -name '*.cu' -or -name '*.cuh' -type f | \
+  files_source=$(find . -name '*.h' -or -name '*.cc' -type f | \
                  grep -E -i -v '(tests|boost|umfpack|bundled)/')
   lines_source=$(cat $files_source | wc -l)
 
index 37455b80e058bcba9d29e2fc678041a35e39181d..798d32a8dd4054b6c39ffb3afd1f838098a82792 100755 (executable)
@@ -61,7 +61,7 @@ checks
 # Process all source and header files:
 #
 
-process_changed "tests include source examples cmake/scripts contrib/python-bindings" ".*\.(cc|h|cu|cuh)" format_file
+process_changed "tests include source examples cmake/scripts contrib/python-bindings" ".*\.(cc|h)" format_file
 process_changed "source" ".*\.inst.in" format_inst
 
 #
@@ -69,21 +69,21 @@ process_changed "source" ".*\.inst.in" format_inst
 #
 
 process_changed "tests include source examples cmake/scripts contrib/python-bindings" \
-  ".*\.(cc|h|cu|cuh|inst.in|output.*|cmake)" fix_permissions
+  ".*\.(cc|h|inst.in|output.*|cmake)" fix_permissions
 
 process_changed "tests include source examples cmake/scripts contrib/python-bindings" \
-  ".*\.(cc|h|cu|cuh|inst.in|cmake)" dos_to_unix
+  ".*\.(cc|h|inst.in|cmake)" dos_to_unix
 
 #
 # Removing trailing whitespace
 #
 
 process_changed "tests include source examples cmake/scripts contrib/python-bindings doc" \
-  ".*\.(cc|h|cu|cuh|html|dox|txt)" remove_trailing_whitespace
+  ".*\.(cc|h|html|dox|txt)" remove_trailing_whitespace
 
 #
 # Ensure only a single newline at end of files
 #
 
 process_changed "tests include source examples cmake/scripts contrib/python-bindings doc" \
-  ".*\.(cc|h|cu|cuh|html|dox|txt)" ensure_single_trailing_newline
+  ".*\.(cc|h|html|dox|txt)" ensure_single_trailing_newline
index 39a92389a47d49b35ebf393e37428ac4238f54ab..5afb7255ce88ffee316c64266971df837c99e7c1 100755 (executable)
@@ -65,7 +65,7 @@ checks
 # Process all source and header files:
 #
 
-process "tests include source examples contrib/python-bindings" ".*\.(cc|h|cu|cuh)" format_file
+process "tests include source examples contrib/python-bindings" ".*\.(cc|h" format_file
 process "source" ".*\.inst.in" format_inst
 
 #
@@ -73,21 +73,21 @@ process "source" ".*\.inst.in" format_inst
 #
 
 process "tests include source examples cmake/scripts contrib/python-bindings" \
-  ".*\.(cc|h|cu|cuh|inst.in|output.*|cmake)" fix_permissions
+  ".*\.(cc|h|inst.in|output.*|cmake)" fix_permissions
 
 process "tests include source examples cmake/scripts contrib/python-bindings" \
-  ".*\.(cc|h|cu|cuh|inst.in|cmake)" dos_to_unix
+  ".*\.(cc|h|inst.in|cmake)" dos_to_unix
 
 #
 # Removing trailing whitespace
 #
 
 process "tests include source examples cmake/scripts contrib/python-bindings doc" \
-  ".*\.(cc|h|cu|cuh|html|dox|txt)" remove_trailing_whitespace
+  ".*\.(cc|h|html|dox|txt)" remove_trailing_whitespace
 
 #
 # Ensure only a single newline at end of files
 #
 
 process "tests include source examples cmake/scripts contrib/python-bindings doc" \
-  ".*\.(cc|h|cu|cuh|html|dox|txt)" ensure_single_trailing_newline
+  ".*\.(cc|h|html|dox|txt)" ensure_single_trailing_newline
index 09411ea1d86cea9237235760720696677130d729..39b058482eb1eb37ed7afb8305aeb6481978796b 100644 (file)
@@ -97,7 +97,7 @@ def parse_arguments():
     parser.add_argument("-b", "--clang-format-binary", metavar="PATH",
                         default=distutils.spawn.find_executable("clang-format"))
 
-    parser.add_argument("--regex", default="*.cc,*.h,*.cu,*.cuh",
+    parser.add_argument("--regex", default="*.cc,*.h",
                         help="Regular expression (regex) to filter files on "
                         "which clang-format is applied.")
 
index 9f1e1d84deb70fca5bc24af9a1bb20f52e17e277..881677e35f35e3d1a23e369e8d01d1013233cf18 100644 (file)
@@ -58,19 +58,7 @@ system $^X, "$cmake_source_dir/doc/doxygen/scripts/intro2toc", "$cmake_source_di
 
 print "  <li> <a href=\"#CommProg\" class=bold>The commented program</a>\n";
 
-my $file_extension;
-
-if (-f "$cmake_source_dir/examples/$step/$step.cc")
-{
-  $file_extension = cc;
-}
-
-if (-f "$cmake_source_dir/examples/$step/$step.cu")
-{
-  $file_extension = cu;
-}
-
-system $^X, "$cmake_source_dir/doc/doxygen/scripts/program2toc", "$cmake_source_dir/examples/$step/$step.$file_extension";
+system $^X, "$cmake_source_dir/doc/doxygen/scripts/program2toc", "$cmake_source_dir/examples/$step/$step.cc";
 
 print
 "</ol></td><td width=\"50%\" valign=\"top\"><ol>
@@ -102,7 +90,7 @@ print " *\n";
 print " * <a name=\"CommProg\"></a>\n";
 print " * <h1> The commented program</h1>\n";
 
-system $^X, "$cmake_source_dir/doc/doxygen/scripts/program2doxygen", "$cmake_source_dir/examples/$step/$step.$file_extension";
+system $^X, "$cmake_source_dir/doc/doxygen/scripts/program2doxygen", "$cmake_source_dir/examples/$step/$step.cc";
 
 system $^X, "$cmake_source_dir/doc/doxygen/scripts/create_anchors", "$cmake_source_dir/examples/$step/doc/results.dox";
 
@@ -114,6 +102,6 @@ print " *\n";
 print
 "<a name=\"PlainProg\"></a>
 <h1> The plain program</h1>
-\@include \"$step.$file_extension\"
+\@include \"$step.cc\"
 */
 ";
index ce7a3721c28edaa6181862a1cd7232c8d00c3c33..45befbb8c52caa2120491c0291b21f5cc7389d72 100644 (file)
@@ -15,7 +15,7 @@
 
 
 # Skip header lines at the top of the file, such as copyright notices and
-# license information, if the file is a step-xx.cc or .cu tutorial. Here, xx
+# license information, if the file is a step-xx.cc tutorial. Here, xx
 # is either a number like step-32 or a number plus a letter like step-12b.
 # Don't skip for other files such as code-gallery files
 if ($ARGV[0] =~ /step-\d+[a-z]?.[cc|cu]/)
index 99304a051656deae7e740c47ec33f7efe5c1dded..a70b75590b29456a35abf7fcc73be264e6279dd5 100644 (file)
@@ -113,22 +113,16 @@ ADD_DEPENDENCIES(tutorial build_tutorial_h)
 FOREACH(_step ${_deal_ii_steps})
   GET_FILENAME_COMPONENT(_step "${_step}" NAME)
 
-  IF(EXISTS "${CMAKE_SOURCE_DIR}/examples/${_step}/${_step}.cu")
-    SET(_FILE_EXTENSION "cu")
-  ELSE()
-    SET(_FILE_EXTENSION "cc")
-  ENDIF()
-
   ADD_CUSTOM_COMMAND(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_step}.${_FILE_EXTENSION}
+    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_step}.cc
     COMMAND ${PERL_EXECUTABLE}
     ARGS
       ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/program2plain
-      < ${CMAKE_SOURCE_DIR}/examples/${_step}/${_step}.${_FILE_EXTENSION}
-      > ${CMAKE_CURRENT_BINARY_DIR}/${_step}.${_FILE_EXTENSION}
+      < ${CMAKE_SOURCE_DIR}/examples/${_step}/${_step}.cc
+      > ${CMAKE_CURRENT_BINARY_DIR}/${_step}.cc
     DEPENDS
       ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/program2plain
-      ${CMAKE_SOURCE_DIR}/examples/${_step}/${_step}.${_FILE_EXTENSION}
+      ${CMAKE_SOURCE_DIR}/examples/${_step}/${_step}.cc
     VERBATIM
     )
 
@@ -146,7 +140,7 @@ FOREACH(_step ${_deal_ii_steps})
       ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/intro2toc
       ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/create_anchors
       ${CMAKE_SOURCE_DIR}/doc/doxygen/scripts/program2doxygen
-      ${CMAKE_SOURCE_DIR}/examples/${_step}/${_step}.${_FILE_EXTENSION}
+      ${CMAKE_SOURCE_DIR}/examples/${_step}/${_step}.cc
       ${CMAKE_SOURCE_DIR}/examples/${_step}/doc/intro.dox
       ${CMAKE_SOURCE_DIR}/examples/${_step}/doc/results.dox
     )
@@ -154,7 +148,7 @@ FOREACH(_step ${_deal_ii_steps})
   ADD_CUSTOM_TARGET(tutorial_${_step}
     DEPENDS
       ${CMAKE_CURRENT_BINARY_DIR}/${_step}.h
-      ${CMAKE_CURRENT_BINARY_DIR}/${_step}.${_FILE_EXTENSION}
+      ${CMAKE_CURRENT_BINARY_DIR}/${_step}.cc
     COMMENT
       "Building doxygen input file for tutorial program <${_step}>"
     )
index 08f2891f66b3f1378e568e7ff90ae83240b0085d..fdb895fb17534bed868795911d5b021766a7db89 100644 (file)
@@ -34,14 +34,6 @@ INSTALL(DIRECTORY deal.II
   FILES_MATCHING PATTERN "*.h"
   )
 
-IF(DEAL_II_WITH_CUDA)
-  INSTALL(DIRECTORY deal.II
-    DESTINATION ${DEAL_II_INCLUDE_RELDIR}
-    COMPONENT library
-    FILES_MATCHING PATTERN "*.cuh"
-    )
-ENDIF()
-
 #
 # and don't forget to install all generated header files, too:
 #
index c94f3efa19e2655814a21e36d2b6655868b4d2bb..306c11a6ad6ae0d5d80ab60f053fab2affad38fc 100644 (file)
@@ -154,7 +154,6 @@ SET(_inst
 
 FILE(GLOB _header
   ${CMAKE_SOURCE_DIR}/include/deal.II/base/*.h
-  ${CMAKE_SOURCE_DIR}/include/deal.II/base/*.cuh
   )
 
 DEAL_II_ADD_LIBRARY(obj_base OBJECT ${_src} ${_header} ${_inst}
index d36e08468a42e5094c67782116e607d6932f5f8f..fc506935f5e1efb4e5df14d64194475ef7bb7183 100644 (file)
@@ -49,7 +49,7 @@
 #include "matrix_vector_mf.h"
 
 
-// forward declare this function. will be implemented in .cu files
+// forward declare this function. will be implemented in .cc files
 template <int dim, int fe_degree, typename Number>
 void
 test();
index bbff6d5551f23f69ffa203128f58d9810f83e240..f09ffb83d45476b64c7a37a79c53e0528a0598ee 100644 (file)
@@ -36,11 +36,7 @@ MACRO(make_quicktest test_basename build_name mpi_run)
   STRING(TOLOWER ${build_name} _build_lowercase)
   SET(_target ${test_basename}.${_build_lowercase})
   LIST(APPEND ALL_TESTS "${_target}")
-  IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${test_basename}.cc")
-    ADD_EXECUTABLE(${_target} EXCLUDE_FROM_ALL ${test_basename}.cc)
-  ELSE()
-    ADD_EXECUTABLE(${_target} EXCLUDE_FROM_ALL ${test_basename}.cu)
-  ENDIF()
+  ADD_EXECUTABLE(${_target} EXCLUDE_FROM_ALL ${test_basename}.cc)
   DEAL_II_INSOURCE_SETUP_TARGET(${_target} ${build_name})
 
   IF("${mpi_run}" STREQUAL "")

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.