Add prefix to guards

This commit is contained in:
2024-03-13 22:23:23 +01:00
parent 77004c16be
commit 88f7fff217
8 changed files with 24 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
#ifndef ACTIVATIONS_H #ifndef CUDANET_ACTIVATIONS_H
#define ACTIVATIONS_H #define CUDANET_ACTIVATIONS_H
namespace Kernels { namespace Kernels {
@@ -25,4 +25,4 @@ relu(const float* __restrict__ src, float* __restrict__ dst, int len);
} // namespace Kernels } // namespace Kernels
#endif // ACTIVATIONS_H #endif // CUDANET_ACTIVATIONS_H

View File

@@ -1,5 +1,5 @@
#ifndef CONVOLUTION_H #ifndef CUDANET_CONVOLUTION_H
#define CONVOLUTION_H #define CUDANET_CONVOLUTION_H
namespace Kernels { namespace Kernels {
@@ -49,4 +49,4 @@ __global__ void convolution(
} // namespace Kernels } // namespace Kernels
#endif // CONVOLUTION_H #endif // CUDANET_CONVOLUTION_H

View File

@@ -1,5 +1,5 @@
#ifndef MATMUL_H #ifndef CUDANET_MATMUL_H
#define MATMUL_H #define CUDANET_MATMUL_H
namespace Kernels { namespace Kernels {
@@ -37,4 +37,4 @@ __global__ void vec_vec_add(
} // namespace Kernels } // namespace Kernels
#endif // MATMUL_H #endif // CUDANET_MATMUL_H

View File

@@ -1,5 +1,5 @@
#ifndef CONV_LAYER_H #ifndef CUDANET_CONV_LAYER_H
#define CONV_LAYER_H #define CUDANET_CONV_LAYER_H
#include <string> #include <string>
#include <vector> #include <vector>
@@ -127,4 +127,4 @@ class Conv2d : public ILayer {
} // namespace Layers } // namespace Layers
#endif // CONV_LAYER_H #endif // CUDANET_CONV_LAYER_H

View File

@@ -1,5 +1,5 @@
#ifndef DENSE_LAYER_H #ifndef CUDANET_DENSE_LAYER_H
#define DENSE_LAYER_H #define CUDANET_DENSE_LAYER_H
#include <functional> #include <functional>
#include <string> #include <string>
@@ -87,4 +87,4 @@ class Dense : public ILayer {
} // namespace Layers } // namespace Layers
#endif // DENSE_LAYER_H #endif // CUDANET_DENSE_LAYER_H

View File

@@ -1,6 +1,6 @@
#ifndef I_LAYER_H #ifndef CUDANET_I_LAYER_H
#define I_LAYER_H #define CUDANET_I_LAYER_H
#include <vector> #include <vector>
@@ -90,4 +90,4 @@ class ILayer {
} // namespace Layers } // namespace Layers
#endif // I_LAYERH #endif // CUDANET_I_LAYERH

View File

@@ -1,5 +1,5 @@
#ifndef INPUT_LAYER_H #ifndef CUDANET_INPUT_LAYER_H
#define INPUT_LAYER_H #define CUDANET_INPUT_LAYER_H
#include <ilayer.cuh> #include <ilayer.cuh>
@@ -47,4 +47,4 @@ class Input : public ILayer {
} // namespace Layers } // namespace Layers
#endif // INPUT_LAYER_H #endif // CUDANET_INPUT_LAYER_H

View File

@@ -1,5 +1,5 @@
#ifndef CUDA_HELPER_H #ifndef CUDANET_HELPER_H
#define CUDA_HELPER_H #define CUDANET_HELPER_H
#include <cuda_runtime.h> #include <cuda_runtime.h>
#include <cstdio> #include <cstdio>
@@ -19,4 +19,4 @@ do { \
} \ } \
} while (0) } while (0)
#endif // CUDA_HELPER_H #endif // CUDANET_HELPER_H