mirror of
https://github.com/augustin64/projet-tipe
synced 2025-02-02 19:39:39 +01:00
Update tests
This commit is contained in:
parent
5f684d9f91
commit
57954a27c0
@ -5,10 +5,19 @@
|
|||||||
#include "../src/include/memory_management.h"
|
#include "../src/include/memory_management.h"
|
||||||
#include "../src/cnn/include/function.h"
|
#include "../src/cnn/include/function.h"
|
||||||
#include "../src/include/colors.h"
|
#include "../src/include/colors.h"
|
||||||
|
#include "../src/include/utils.h"
|
||||||
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
printf("Initialisation\n");
|
printf("Checking CUDA compatibility.\n");
|
||||||
|
bool cuda_compatible = check_cuda_compatibility();
|
||||||
|
if (!cuda_compatible) {
|
||||||
|
printf(RED "CUDA not compatible, skipping tests.\n" RESET);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
printf(GREEN "OK\n" RESET);
|
||||||
|
|
||||||
|
printf("Initialisation OK\n");
|
||||||
// Initialise values
|
// Initialise values
|
||||||
int depth = 10;
|
int depth = 10;
|
||||||
int rows = 10;
|
int rows = 10;
|
||||||
|
@ -17,6 +17,14 @@ __global__ void check_access(int* array, int range) {
|
|||||||
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
printf("Checking CUDA compatibility.\n");
|
||||||
|
bool cuda_compatible = check_cuda_compatibility();
|
||||||
|
if (!cuda_compatible) {
|
||||||
|
printf(RED "CUDA not compatible, skipping tests.\n" RESET);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
printf(GREEN "OK\n" RESET);
|
||||||
|
|
||||||
printf("Pollution de la mémoire\n");
|
printf("Pollution de la mémoire\n");
|
||||||
int mem_used;
|
int mem_used;
|
||||||
int blocks_used;
|
int blocks_used;
|
||||||
|
Loading…
Reference in New Issue
Block a user