Skip to content

Commit 7fe76a7

Browse files
increased max file size for vertices log file and logged the validation vertices from the gpu in reverse order to match the reverse order operation of advancing vertices
1 parent fb5bb3f commit 7fe76a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Simulator/Core/GPUModel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void GPUModel::advance()
188188
HANDLE_ERROR(cudaMemcpy(Inoise_h.data(), validationNeurons.Inoise_, verts * sizeof(float),
189189
cudaMemcpyDeviceToHost));
190190

191-
for (int i = 0; i < verts; i++) {
191+
for (int i = verts - 1; i >= 0; i--) {
192192
LOG4CPLUS_DEBUG(vertexLogger_, "CUDA advance Index[ "
193193
<< i << "] :: Noise = " << randNoise_h[i]
194194
<< "\tVm: " << vm_h[i] << endl

build/RuntimeFiles/log4cplus_configure.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ log4cplus.appender.MyFileAppender.layout.ConversionPattern=[%-5p][%D{%Y/%m/%d %H
3838
#VertexFileAppender
3939
log4cplus.appender.VertexFileAppender=log4cplus::RollingFileAppender
4040
log4cplus.appender.VertexFileAppender.File=Output/Debug/vertices.txt
41-
log4cplus.appender.VertexFileAppender.MaxFileSize=16MB
41+
log4cplus.appender.VertexFileAppender.MaxFileSize=32MB
4242
log4cplus.appender.VertexFileAppender.MaxBackupIndex=1
4343
log4cplus.appender.VertexFileAppender.layout=log4cplus::PatternLayout
4444
log4cplus.appender.VertexFileAppender.layout.ConversionPattern=[%-5p][%D{%Y/%m/%d %H:%M:%S:%q}][%-l] %m%n

0 commit comments

Comments
 (0)