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
__global__ void foo(float* array) | |
{ | |
int i = 0; | |
array[i] = 0.0; | |
} | |
#define ARRAY_SIZE 500 | |
int main (void) |
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
def accuracy(y_true, y_pred): | |
count = 0 | |
for i in range(y_pred.shape[0]): | |
if y_true[i] in y_pred[:i+1]: | |
count += 1 | |
return count / y_pred.shape[0] | |
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
diff -uNr NVIDIA-Linux-x86_64-418.67.old/kernel/nv_compiler.h NVIDIA-Linux-x86_64-418.67/kernel/nv_compiler.h | |
--- NVIDIA-Linux-x86_64-418.67.old/kernel/nv_compiler.h 1969-12-31 19:00:00.000000000 -0500 | |
+++ NVIDIA-Linux-x86_64-418.67/kernel/nv_compiler.h 2019-06-17 14:24:00.256556017 -0400 | |
@@ -0,0 +1 @@ | |
+#define NV_COMPILER "gcc version 9.1.1 20190503 (Red Hat 9.1.1-1) (GCC) " | |
diff -uNr NVIDIA-Linux-x86_64-418.67.old/kernel/nvidia-drm/nvidia-drm-connector.c NVIDIA-Linux-x86_64-418.67/kernel/nvidia-drm/nvidia-drm-connector.c | |
--- NVIDIA-Linux-x86_64-418.67.old/kernel/nvidia-drm/nvidia-drm-connector.c 2019-04-06 04:30:19.000000000 -0400 | |
+++ NVIDIA-Linux-x86_64-418.67/kernel/nvidia-drm/nvidia-drm-connector.c 2019-06-17 15:14:28.254981745 -0400 | |
@@ -31,6 +31,7 @@ | |
#include "nvidia-drm-encoder.h" |
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
static proc* popMultiLevelQueue() | |
{ | |
proc* p = NULL; | |
// TODO: return next process in queue | |
// lock is held so all actions are safe | |
// need to move to "last" in queue too | |
return p; | |
} | |
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
void | |
scheduler(void) | |
{ | |
struct proc *p; | |
struct cpu *c = mycpu(); | |
c->proc = 0; | |
for(;;){ | |
// Enable interrupts on this processor. |