Fixed bug in Tensor Cores V100 (1. Desc in Batch norm, 2. Manually selected algo).

Also fixed time measure on Linux for multi-threading.
This commit is contained in:
AlexeyAB
2018-04-15 01:51:21 +03:00
parent 16cfff811f
commit eb9c88ef73
6 changed files with 74 additions and 26 deletions

View File

@ -7,13 +7,24 @@
#include <limits.h>
#ifdef WIN32
#include "unistd.h"
#include "gettimeofday.h"
#else
#include <unistd.h>
#include <sys/time.h>
#endif
#include "utils.h"
#pragma warning(disable: 4996)
double what_time_is_it_now()
{
struct timeval time;
if (gettimeofday(&time, NULL)) {
return 0;
}
return (double)time.tv_sec + (double)time.tv_usec * .000001;
}
int *read_map(char *filename)
{
int n = 0;