forked from microsoft/CNTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing compilation of CPUMatrix on Windows: heap overflow fixed
- Loading branch information
Showing
6 changed files
with
55 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information. | ||
// | ||
#include "stdafx.h" | ||
#include "CPUMatrixImpl.h" | ||
|
||
namespace Microsoft { namespace MSR { namespace CNTK { | ||
|
||
// explicit instantiations, due to CPUMatrix being too big and causing VS2015 cl crash. | ||
template class MATH_API CPUMatrix<double>; | ||
}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information. | ||
// | ||
#include "stdafx.h" | ||
#include "CPUMatrixImpl.h" | ||
|
||
namespace Microsoft { namespace MSR { namespace CNTK { | ||
|
||
int MATH_API TracingGPUMemoryAllocator::m_traceLevel = 0; | ||
|
||
void TracingGPUMemoryAllocator::SetTraceLevel(int traceLevel) | ||
{ | ||
m_traceLevel = traceLevel; | ||
} | ||
|
||
bool TracingGPUMemoryAllocator::IsTraceEnabled() | ||
{ | ||
return (m_traceLevel > 0); | ||
} | ||
|
||
// explicit instantiations, due to CPUMatrix being too big and causing VS2015 cl crash. | ||
template class MATH_API CPUMatrix<float>; | ||
}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters