Remove redundant <fstream> includes (#563)

* Remove redundant <fstream> includes

* Fix fstream in examples/

* Fix <fstream> in test/

* Use consistent order for <fstream> (always after <iostream>)

* Remove an unneeded include in a file where std::ofstream usage is commented out

Co-authored-by: Ivan Komarov <dfyz@yandex-team.ru>
This commit is contained in:
Ivan Komarov 2022-07-19 22:23:54 +03:00 committed by GitHub
parent e7a61c761a
commit 0b8cacd6f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
35 changed files with 29 additions and 25 deletions

View File

@ -50,7 +50,6 @@
#include <iostream>
#include <sstream>
#include <vector>
#include <fstream>
// CUTLASS includes
#include "cutlass/transform/threadblock/predicated_tile_iterator.h"

View File

@ -124,6 +124,7 @@ compare if the output from CUTLASS kernel is same as the reference implicit GEMM
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include "cutlass/cutlass.h"

View File

@ -74,7 +74,6 @@
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include "cutlass/cutlass.h"

View File

@ -72,7 +72,6 @@
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include "cutlass/cutlass.h"

View File

@ -111,6 +111,7 @@ compare if the output from CUTLASS kernel is same as the reference implicit GEMM
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include "cutlass/cutlass.h"

View File

@ -30,6 +30,7 @@
**************************************************************************************************/
#include <iostream>
#include <fstream>
#include <sstream>
#include "cutlass/cutlass.h"

View File

@ -41,6 +41,7 @@ epilogue/threadblock/epilogue_gemm_k_reduction.h
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include "cutlass/cutlass.h"

View File

@ -52,6 +52,7 @@ line is the same.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include "cutlass/cutlass.h"

View File

@ -49,6 +49,7 @@ technical details.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include "cutlass/cutlass.h"

View File

@ -36,6 +36,7 @@ compared with CUDA Cores. See example 27 for the trick of 3xTF32.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include "cutlass/cutlass.h"

View File

@ -40,6 +40,7 @@ to correctly instantiate the GEMM template.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include "cutlass/cutlass.h"

View File

@ -69,6 +69,7 @@
#include <algorithm>
#include <iostream>
#include <fstream>
#include <random>
#include <numeric>

View File

@ -33,6 +33,8 @@
*/
#pragma once
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/cutlass.h"

View File

@ -33,6 +33,8 @@
*/
#pragma once
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/cutlass.h"

View File

@ -37,6 +37,8 @@
*/
#pragma once
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/cutlass.h"

View File

@ -33,6 +33,8 @@
*/
#pragma once
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/cutlass.h"

View File

@ -33,6 +33,8 @@
*/
#pragma once
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/cutlass.h"

View File

@ -32,8 +32,6 @@
\brief Unit tests for thread-level GEMM
*/
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -32,8 +32,6 @@
\brief Unit tests for thread-level GEMM
*/
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -32,8 +32,6 @@
\brief Unit tests for thread-level GEMM
*/
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -32,8 +32,6 @@
\brief Unit tests for thread-level GEMM
*/
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -32,8 +32,6 @@
\brief Unit tests for thread-level GEMM
*/
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -32,8 +32,6 @@
\brief Unit tests for thread-level GEMM
*/
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -33,8 +33,6 @@
\brief Unit tests for thread-level GEMM
*/
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -35,8 +35,6 @@
#ifdef CUTLASS_ARCH_WMMA_SM70_ENABLED
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -32,8 +32,6 @@
\brief Unit tests for thread-level GEMM
*/
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -35,7 +35,6 @@
#pragma once
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdexcept>

View File

@ -36,6 +36,7 @@
#pragma once
#include <iostream>
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/cutlass.h"

View File

@ -33,7 +33,6 @@
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include "../../common/cutlass_unit_test.h"

View File

@ -35,7 +35,6 @@
#pragma once
#include <iostream>
#include <fstream>
#include <sstream>
#include "../../common/cutlass_unit_test.h"

View File

@ -35,6 +35,8 @@
#pragma once
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -34,6 +34,8 @@
#pragma once
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -35,6 +35,8 @@
#pragma once
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/aligned_buffer.h"

View File

@ -34,6 +34,8 @@
#pragma once
#include <fstream>
#include "../../common/cutlass_unit_test.h"
#include "cutlass/cutlass.h"

View File

@ -34,7 +34,7 @@
\brief This header contains a class to parametrize a statistical distribution function.
*/
#include <fstream>
#include <ostream>
namespace cutlass {