mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-05 17:34:21 +00:00
Add prefix to guards
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef ACTIVATIONS_H
|
||||
#define ACTIVATIONS_H
|
||||
#ifndef CUDANET_ACTIVATIONS_H
|
||||
#define CUDANET_ACTIVATIONS_H
|
||||
|
||||
namespace Kernels {
|
||||
|
||||
@@ -25,4 +25,4 @@ relu(const float* __restrict__ src, float* __restrict__ dst, int len);
|
||||
|
||||
} // namespace Kernels
|
||||
|
||||
#endif // ACTIVATIONS_H
|
||||
#endif // CUDANET_ACTIVATIONS_H
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef CONVOLUTION_H
|
||||
#define CONVOLUTION_H
|
||||
#ifndef CUDANET_CONVOLUTION_H
|
||||
#define CUDANET_CONVOLUTION_H
|
||||
|
||||
namespace Kernels {
|
||||
|
||||
@@ -49,4 +49,4 @@ __global__ void convolution(
|
||||
|
||||
} // namespace Kernels
|
||||
|
||||
#endif // CONVOLUTION_H
|
||||
#endif // CUDANET_CONVOLUTION_H
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef MATMUL_H
|
||||
#define MATMUL_H
|
||||
#ifndef CUDANET_MATMUL_H
|
||||
#define CUDANET_MATMUL_H
|
||||
|
||||
namespace Kernels {
|
||||
|
||||
@@ -37,4 +37,4 @@ __global__ void vec_vec_add(
|
||||
|
||||
} // namespace Kernels
|
||||
|
||||
#endif // MATMUL_H
|
||||
#endif // CUDANET_MATMUL_H
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef CONV_LAYER_H
|
||||
#define CONV_LAYER_H
|
||||
#ifndef CUDANET_CONV_LAYER_H
|
||||
#define CUDANET_CONV_LAYER_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -127,4 +127,4 @@ class Conv2d : public ILayer {
|
||||
|
||||
} // namespace Layers
|
||||
|
||||
#endif // CONV_LAYER_H
|
||||
#endif // CUDANET_CONV_LAYER_H
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef DENSE_LAYER_H
|
||||
#define DENSE_LAYER_H
|
||||
#ifndef CUDANET_DENSE_LAYER_H
|
||||
#define CUDANET_DENSE_LAYER_H
|
||||
|
||||
#include <functional>
|
||||
#include <string>
|
||||
@@ -87,4 +87,4 @@ class Dense : public ILayer {
|
||||
|
||||
} // namespace Layers
|
||||
|
||||
#endif // DENSE_LAYER_H
|
||||
#endif // CUDANET_DENSE_LAYER_H
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
#ifndef I_LAYER_H
|
||||
#define I_LAYER_H
|
||||
#ifndef CUDANET_I_LAYER_H
|
||||
#define CUDANET_I_LAYER_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
@@ -90,4 +90,4 @@ class ILayer {
|
||||
|
||||
} // namespace Layers
|
||||
|
||||
#endif // I_LAYERH
|
||||
#endif // CUDANET_I_LAYERH
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef INPUT_LAYER_H
|
||||
#define INPUT_LAYER_H
|
||||
#ifndef CUDANET_INPUT_LAYER_H
|
||||
#define CUDANET_INPUT_LAYER_H
|
||||
|
||||
#include <ilayer.cuh>
|
||||
|
||||
@@ -47,4 +47,4 @@ class Input : public ILayer {
|
||||
|
||||
} // namespace Layers
|
||||
|
||||
#endif // INPUT_LAYER_H
|
||||
#endif // CUDANET_INPUT_LAYER_H
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef CUDA_HELPER_H
|
||||
#define CUDA_HELPER_H
|
||||
#ifndef CUDANET_HELPER_H
|
||||
#define CUDANET_HELPER_H
|
||||
|
||||
#include <cuda_runtime.h>
|
||||
#include <cstdio>
|
||||
@@ -19,4 +19,4 @@ do { \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif // CUDA_HELPER_H
|
||||
#endif // CUDANET_HELPER_H
|
||||
|
||||
Reference in New Issue
Block a user