Yesterday everything works well, however today when
I tried to so submit a job, it just put it into the queue and do nothing.
I haven't reached the limitation of usage.
By "squeue --m" the message looks
"Priority 12 49 22 TIME LEFT 10 00", the time l...
The speed of writing the result matrix B and C to file is extremely slow.
The reason is the result matrix of B and C has column number nearly 100000 so it is very big.
Can I write binary format to the file instead? I've tested it is much faster than w...
Thanks, probably this is the reason why it get killed.
However the tricky part is that if I run it without script, just . project.
It can run sucessfully sometimes.
I understand that but I dont think virual memeory management would affect the use of memory, this is what operation system and c library should gurantee.
If malloc return sucess I should be able to use it freely. In fact I have run my program on my la...
when I tried to alloc some memory on setonix, with script
bin bash
SBATCH --nodes 1
SBTACH --ntasks 28
SBATCH --partition work
SBATCH --account courses0101
SBATCH --mem 200G
export OMP SCHEDULE "static,3125"
gcc -m64 -fopenmp -o project . project.c
s...
In mid test, Q12
it use private(k) so k is not initialized.
That means it can be any value.
So all the answers are possible.
If I misunderstand something pls tell me.
I think in lecture, it only mentions static, dynamic, guided, runtime.
With runtime you can set the chunk size in script.
But I am also confused whether I should make runtime as a indepedent strategy.
The project mentions to write the results for the B and C matrices to different file.
I am confused what it means the final results for B and C.
for example, I have three pair X1,Y1; X2,Y2; X3,Y3;
for pair1 I have X1B X1C, Y1B,Y1C; for pair2...
and I ...
The project said there should be two consective zero in B and C
if A has no non-zero elements.
But what's the point of that? Since for B it only contains non-zero elements,
that simply means all the zero are used for representing null.
So one zero is ...
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...
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...