summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>2019-05-04 22:28:29 +0200
committerGitHub <noreply@github.com>2019-05-04 22:28:29 +0200
commita387a23518b2794b7a9bdebdb7ca35943c50a912 (patch)
treeef675327595548083e4eaec3fb3a789ba6f024e6 /driver
parent3f427c0cf979dc3ba8bc0e48bda973dfdd6c35fb (diff)
parentb46875b76b8d4ebbc320547c20f7f4486fe52563 (diff)
downloadopenblas-a387a23518b2794b7a9bdebdb7ca35943c50a912.tar.gz
openblas-a387a23518b2794b7a9bdebdb7ca35943c50a912.tar.bz2
openblas-a387a23518b2794b7a9bdebdb7ca35943c50a912.zip
Merge pull request #2101 from luzpaz/misc-typos
Misc. typo fixes in comments and documentation
Diffstat (limited to 'driver')
-rw-r--r--driver/others/blas_server.c6
-rw-r--r--driver/others/blas_server_win32.c4
-rw-r--r--driver/others/init.c2
-rw-r--r--driver/others/memory.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/driver/others/blas_server.c b/driver/others/blas_server.c
index e5db1804f..6f4e20610 100644
--- a/driver/others/blas_server.c
+++ b/driver/others/blas_server.c
@@ -109,7 +109,7 @@ extern unsigned int openblas_thread_timeout();
/* equal to "OMP_NUM_THREADS - 1" and thread only wakes up when */
/* jobs is queued. */
-/* We need this grobal for cheking if initialization is finished. */
+/* We need this global for checking if initialization is finished. */
int blas_server_avail __attribute__((aligned(ATTRIBUTE_SIZE))) = 0;
/* Local Variables */
@@ -150,8 +150,8 @@ static unsigned int thread_timeout = (1U << (THREAD_TIMEOUT));
#ifdef MONITOR
-/* Monitor is a function to see thread's status for every seconds. */
-/* Usually it turns off and it's for debugging. */
+/* Monitor is a function to see thread's status for every second. */
+/* Usually it turns off and it's for debugging. */
static pthread_t monitor_thread;
static int main_status[MAX_CPU_NUMBER];
diff --git a/driver/others/blas_server_win32.c b/driver/others/blas_server_win32.c
index 0b38ee365..bace54a23 100644
--- a/driver/others/blas_server_win32.c
+++ b/driver/others/blas_server_win32.c
@@ -50,7 +50,7 @@
/* This is a thread implementation for Win32 lazy implementation */
-/* Thread server common infomation */
+/* Thread server common information */
typedef struct{
CRITICAL_SECTION lock;
HANDLE filled;
@@ -61,7 +61,7 @@ typedef struct{
} blas_pool_t;
-/* We need this global for cheking if initialization is finished. */
+/* We need this global for checking if initialization is finished. */
int blas_server_avail = 0;
/* Local Variables */
diff --git a/driver/others/init.c b/driver/others/init.c
index 012ef6647..0aad9c407 100644
--- a/driver/others/init.c
+++ b/driver/others/init.c
@@ -765,7 +765,7 @@ int gotoblas_set_affinity(int pos) {
int mynode = 1;
- /* if number of threads is larger than inital condition */
+ /* if number of threads is larger than initial condition */
if (pos < 0) {
sched_setaffinity(0, sizeof(cpu_orig_mask), &cpu_orig_mask[0]);
return 0;
diff --git a/driver/others/memory.c b/driver/others/memory.c
index db14cde02..02352b3ae 100644
--- a/driver/others/memory.c
+++ b/driver/others/memory.c
@@ -2751,7 +2751,7 @@ void *blas_memory_alloc(int procpos){
#ifdef ALLOC_DEVICEDRIVER
if ((*func == alloc_devicedirver) && (map_address == (void *)-1)) {
- fprintf(stderr, "OpenBLAS Warning ... Physically contigous allocation was failed.\n");
+ fprintf(stderr, "OpenBLAS Warning ... Physically contiguous allocation was failed.\n");
}
#endif