Skip to content
Snippets Groups Projects
Commit 97721704 authored by Erik Strand's avatar Erik Strand
Browse files

Try exactly as it says in the docs

parent b21e641b
Branches
No related tags found
No related merge requests found
mpi_info: mpi_info.c
mpicc -o $@ $<
mpicc $< -lcudart -o $@
#!/bin/bash
module purge
module load spack git gcc/7.3.0 openmpi/3.1.4-pmi-cuda-ucx
module load spack git gcc/7.3.0 cuda/10.1 openmpi/3.1.4-pmi-cuda-ucx
#include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
int main(int argc, char *argv[]) {
char* local_rank_str = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment