Commit fdc8e062 authored by lykos98's avatar lykos98
Browse files

fixed all indentation issues (due to a vim bug :))

parent e6c925dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
main
main.x
sync.sh

main

0 → 100755
+20.9 KiB

File added.

No diff preview for this file type.

src/main/main.c

0 → 100644
+44 −0
Original line number Diff line number Diff line
#include <mpi.h>
#include <stdio.h>
#include "../common/common.h"
#include "../tree/tree.h"

int main(int argc, char** argv) {
    MPI_Init(NULL, NULL);

    char processor_name[MPI_MAX_PROCESSOR_NAME];
    int name_len;
    MPI_Get_processor_name(processor_name, &name_len);
	
	global_context_t ctx;

	ctx.mpi_communicator = MPI_COMM_WORLD;
	get_context(&ctx);
	
	/*
	 * Mock reading some files, one for each processor
	 */

	int d = 5;
	
	float_t* data;

	/*
	 * Generate a random matrix of lenght of some kind
	 */
	if(ctx.mpi_rank == 0)
	{
		simulate_master_read_and_scatter(5, 1000000, &ctx);	
	}
	else
	{
		simulate_master_read_and_scatter(0, 0, &ctx);	
	}

	//free(data);
	free_context(&ctx);
    MPI_Finalize();
}


src/main/main/main.c

0 → 100644
+44 −0
Original line number Diff line number Diff line
#include <mpi.h>
#include <stdio.h>
#include "../common/common.h"
#include "../tree/tree.h"

int main(int argc, char** argv) {
    MPI_Init(NULL, NULL);

    char processor_name[MPI_MAX_PROCESSOR_NAME];
    int name_len;
    MPI_Get_processor_name(processor_name, &name_len);
	
	global_context_t ctx;

	ctx.mpi_communicator = MPI_COMM_WORLD;
	get_context(&ctx);
	
	/*
	 * Mock reading some files, one for each processor
	 */

	int d = 5;
	
	float_t* data;

	/*
	 * Generate a random matrix of lenght of some kind
	 */
	if(ctx.mpi_rank == 0)
	{
		simulate_master_read_and_scatter(5, 1000000, &ctx);	
	}
	else
	{
		simulate_master_read_and_scatter(0, 0, &ctx);	
	}

	//free(data);
	free_context(&ctx);
    MPI_Finalize();
}


+1449 −1501

File changed.

Preview size limit exceeded, changes collapsed.