Hi,
Just wondering if we need to return a 2D array, which kinds of format you will recommend
Format 1
int array i j function()
Format 2
int function(int row, int column)
The first one is returning a static array, and the second o...
Hi,
For the project, I was wondering what form the compressed multiplication result should be in? Should I output a full 100000x100000 matrix or a compressed matrix?
Thanks
include stdio.h
include stdlib.h
include string.h
include time.h
include unistd.h
include omp.h
define ARRAY LEN 1000000
int main(int argc, char argv )
unsigned int seed 12345;
srand(seed);
int arr ARRAY LEN ;
for(int i 0;i ARRA...
Hi, can you give me more details about your implementation? It would be better if you could attach your code.
I suspect if you are using the reduction and the number of threads is quite large, it can cause time overhead in the reduction steps.
Hi, I assume you are running in Setonix using the batch script.
The batch script example shows that you request one server (--node 1) and 28 tasks (--ntasks 28). The ntasks option means you are asking for 28 independent processes with the default numb...
In this example (in the slide),
int main(int argc, char argv )
printf("Openmp running with d threads n", omp get max threads());
pragma omp parallel
printf("Hello World from thread d n", omp get thread num());
retu...
In Lab 3, after following the program from the slides, I observed that increasing the number of threads led to an increase in the total running time, which was contrary to my expectations.
Could you help me understand if this behavior is normal or if...