Skip to content

Commit

Permalink
Switch from include guards to pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaldu committed Dec 5, 2024
1 parent 0701849 commit 3f43747
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 59 deletions.
5 changes: 0 additions & 5 deletions src/cuda/DataFormats/Matrix.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@

#ifndef Matrix_h
#define Matrix_h

#pragma once

#include <algorithm>
Expand Down Expand Up @@ -547,5 +544,3 @@ std::ostream& operator<<(std::ostream& out, const Matrix<U>& m) {

return out;
}

#endif
5 changes: 0 additions & 5 deletions src/cuda/DataFormats/VectorKernels.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@

#ifndef kernels_h
#define kernels_h

#pragma once

#include <cassert>
Expand Down Expand Up @@ -105,5 +102,3 @@ __global__ void matrix_multiply(const matrix_t<T> a,
c[row * b.cols + col] = temp;
}
}

#endif
5 changes: 0 additions & 5 deletions src/cuda/DataFormats/VectorOperations.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@

#ifndef vec_operations_h
#define vec_operations_h

#pragma once

#include <algorithm>
Expand Down Expand Up @@ -191,5 +188,3 @@ std::ostream& operator<<(std::ostream& out, const std::vector<T>& vec) {

return out;
}

#endif
4 changes: 0 additions & 4 deletions src/cuda/include/Activators.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@

#ifndef Activators_h
#define Activators_h

#pragma once

#include <algorithm>
Expand Down Expand Up @@ -470,4 +467,3 @@ struct Swish {
}
};
*/
#endif
5 changes: 1 addition & 4 deletions src/cuda/include/ErrorFunction.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#ifndef ErrorFunction_h
#define ErrorFunction_h
#pragma once

#include <cmath>
#include <memory>
Expand Down Expand Up @@ -57,5 +56,3 @@ struct MeanSquaredError {
}
}
};

#endif
5 changes: 0 additions & 5 deletions src/cuda/include/Layer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@

#ifndef Layer_h
#define Layer_h

#pragma once

#include <algorithm>
Expand Down Expand Up @@ -130,5 +127,3 @@ std::ostream& operator<<(std::ostream& out, const Layer<T>& layer) {

return out;
}

#endif
5 changes: 1 addition & 4 deletions src/cuda/include/Network.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#ifndef Network_h
#define Network_h
#pragma once

#include <fstream>
#include <memory>
Expand Down Expand Up @@ -367,5 +366,3 @@ inline void random_matrix(shared<Matrix<W>> matrix) {
matrix->set_data(i, dis(gen));
}
}

#endif
5 changes: 0 additions & 5 deletions src/nnhep/DataFormats/Matrix.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@

#ifndef Matrix_h
#define Matrix_h

#pragma once

#include <algorithm>
Expand Down Expand Up @@ -377,5 +374,3 @@ namespace nnhep {
}

}; // namespace nnhep

#endif
5 changes: 0 additions & 5 deletions src/nnhep/DataFormats/VectorOperations.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@

#ifndef vec_operations_h
#define vec_operations_h

#pragma once

#include <algorithm>
Expand Down Expand Up @@ -66,5 +63,3 @@ namespace nnhep {
}

}; // namespace nnhep

#endif
5 changes: 0 additions & 5 deletions src/nnhep/headers/Activators.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@

#ifndef Activators_h
#define Activators_h

#pragma once

#include <algorithm>
Expand Down Expand Up @@ -381,5 +378,3 @@ namespace nnhep {
};

}; // namespace nnhep

#endif
5 changes: 1 addition & 4 deletions src/nnhep/headers/ErrorFunction.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#ifndef ErrorFunction_h
#define ErrorFunction_h
#pragma once

#include <cmath>
#include <memory>
Expand Down Expand Up @@ -73,5 +72,3 @@ namespace nnhep {
/* }; */

}; // namespace nnhep

#endif
4 changes: 0 additions & 4 deletions src/nnhep/headers/Layer.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@

#ifndef Layer_h
#define Layer_h

#pragma once

#include <algorithm>
Expand Down Expand Up @@ -130,4 +127,3 @@ namespace nnhep {
}

}; // namespace nnhep
#endif
5 changes: 1 addition & 4 deletions src/nnhep/headers/Network.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#ifndef Network_h
#define Network_h
#pragma once

#include <fstream>
#include <memory>
Expand Down Expand Up @@ -380,5 +379,3 @@ namespace nnhep {
}

}; // namespace nnhep

#endif

0 comments on commit 3f43747

Please sign in to comment.