Skip to content

Commit

Permalink
linux compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyill committed Jul 29, 2019
1 parent 394ee92 commit 342b1d5
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/snAux/src/auxFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//
#include <thread>
#include <chrono>
#include <string>
#include <cstring>
#include <vector>
#include <algorithm>
#include <cctype>
Expand Down
1 change: 1 addition & 0 deletions src/snOperatorCPU/src/CPU/tensor.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

#include "snBase/snBase.h"
#include <cstring>

using namespace SN_Base;

Expand Down
2 changes: 2 additions & 0 deletions src/snOperatorCPU/src/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

#pragma once


#include <cstring>
#include <algorithm>
#include <omp.h>
#include "snBase/snBase.h"
Expand Down
4 changes: 4 additions & 0 deletions src/snOperatorCPU/src/weightInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//

#include <cstring>
#include <cmath>

#include "snBase/snBase.h"
#include "random.h"
#include "structurs.h"
Expand Down
1 change: 0 additions & 1 deletion src/snOperatorCUDA/src/CUDA/common.cu
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#pragma once

#include <cuda_runtime.h>
#include "../stdafx.h"
Expand Down
2 changes: 1 addition & 1 deletion src/snOperatorCUDA/src/Operator/batchNorm.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class BatchNorm final : SN_Base::OperatorBase{

bool setBatchNorm(const SN_Base::batchNorm& bn) override;

SN_Base::batchNorm BatchNorm::getBatchNorm()const override;
SN_Base::batchNorm getBatchNorm()const override;

private:

Expand Down
1 change: 0 additions & 1 deletion src/snOperatorCUDA/src/Operator/convolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ void Convolution::backward(const SN_Base::Tensor& inTns, const operationParam& o
}
}

#include <cuda_runtime.h>
void Convolution::updateConfig(bool isLern, const snSize& newsz){

size_t& kernel = convPrms_.kernel,
Expand Down
2 changes: 2 additions & 0 deletions src/snSIMD/src/convolutionBWD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
//


#include <immintrin.h>
#include <omp.h>
#include <thread>
#include <cstring>
#include "snBase/snBase.h"

using namespace std;
Expand Down
2 changes: 2 additions & 0 deletions src/snSIMD/src/convolutionFWD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
// THE SOFTWARE.
//

#include <immintrin.h>
#include <omp.h>
#include <thread>
#include <iostream>
#include <cstring>
#include "snBase/snBase.h"
#include "Lib/OpenBLAS/cblas.h"

Expand Down

0 comments on commit 342b1d5

Please sign in to comment.