This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| th, | |
| td { | |
| padding-left: 10px; | |
| padding-right: 10px; | |
| font-family: monospace; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/python3 | |
| # Requires the openstacksdk pip package - openstacksdk==4.0.0 | |
| import openstack | |
| from urllib.request import urlopen | |
| import json | |
| # Initiate connection to the OpenStack API (get a token) | |
| # Expects credentials to be available in "OS_"-prefixed env vars |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <mpi.h> | |
| int main(int argc, char *argv[]) { | |
| int numprocs, rank, namelen; | |
| char processor_name[MPI_MAX_PROCESSOR_NAME]; | |
| MPI_Init(&argc, &argv); | |
| MPI_Comm_size(MPI_COMM_WORLD, &numprocs); | |
| MPI_Comm_rank(MPI_COMM_WORLD, &rank); | |
| MPI_Get_processor_name(processor_name, &namelen); | |
| printf("Process %d on %s out of %d\n", rank, processor_name, numprocs); |