This file contains 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/bash | |
dpkg --purge `dpkg -l|grep ^rc|sed 's/\s\{1,\}/ /g'|cut -d" " -f2` |
This file contains 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 <mpi.h> | |
#include <stdio.h> | |
int main(int argc, char **argv){ | |
int my_rank, my_size, name_len; | |
char processor_name[MPI_MAX_PROCESSOR_NAME]; | |
MPI_Init(&argc,&argv); | |
MPI_Comm_size(MPI_COMM_WORLD,&my_size); |
This file contains 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 <mpi.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
int main(int argc, char **argv){ | |
int my_rank, my_size, name_len; | |
unsigned long long my_sum=0, sum=0, count, i; | |
char my_name[MPI_MAX_PROCESSOR_NAME]; |
This file contains 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 <stdint.h> | |
__global__ void add (unsigned long long *c) { | |
unsigned long long i = blockDim.x * blockIdx.x + threadIdx.x; | |
c[i] = i+1; | |
} | |
int main(int argc, char **argv){ |
This file contains 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 <mpi.h> | |
#include <stdio.h> | |
__global__ void add (int rank, unsigned long long *c) { | |
unsigned long long i = blockDim.x * blockIdx.x + threadIdx.x; | |
c[i] = ( rank - 1 ) * blockDim.x + i + 1; | |
} | |
int main(int argc, char **argv){ |
This file contains 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/bash | |
user="root" | |
file="ip_list.txt" | |
identity="id_rsa" | |
if [ $# -ne 1 ];then | |
echo "usage: sh ./all-ssh.sh 'command here'" | |
exit 1 | |
fi |
This file contains 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/sh | |
file="ip_list.txt" | |
cat $file | while read ip | |
do | |
# windows | |
#if ! ping -n 1 -w 1 ${ip} 1>/dev/null 2>/dev/null ; then | |
# linux | |
if ! ping -c 1 -w 1 ${ip} 1>/dev/null 2>/dev/null ; then |
This file contains 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
@for /F "delims=: tokens=1" %%a in ('ipconfig ^| findstr "イーサネット"') do @echo %%a | |
@for /F "delims=: tokens=2" %%b in ('ipconfig ^| findstr "IPv4"') do @echo %%b | |
pause |
OlderNewer