Instantly share code, notes, and snippets.
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/bash | |
# Usage: | |
# $ wget "https://gist.githubusercontent.com/aokomoriuta/e3bcbe7cb36d16a484f53555994278ec/raw/useradd_github.sh" | |
# $ sudo bash useradd_github.sh <username> | |
echo${1} | |
useradd -m -s /bin/bash -p""${1} | |
gpasswd -a${1} sudo | |
su${1} -c"mkdir ~/.ssh \ |
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<utility> | |
#include<boost/fusion/include/transform.hpp> | |
#include<boost/fusion/include/make_vector.hpp> | |
#include<boost/fusion/include/invoke.hpp> | |
classS | |
{ | |
private: | |
int a; |
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
#define_SCL_SECURE_NO_WARNINGS | |
#define__CL_ENABLE_EXCEPTIONS | |
#ifdef _MSC_VER | |
#pragma warning(push, 1) | |
#pragma warning(disable: 4996) | |
#endif | |
#include<iostream> | |
#include<CL/cl.hpp> | |
#ifdef _MSC_VER |
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
make: Nothing to be done for 'all'. | |
======================================== | |
Start ThirdParty Allwmake | |
======================================== | |
======================================== | |
Build MPI libraries if required | |
have OPENMPI shared library (openmpi-1.8.4) |
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
/*---------------------------------------------------------------------------*\ | |
| ========= | | | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | |
| \\ / O peration | Version: dev | | |
| \\ / A nd | Web: www.OpenFOAM.org | | |
| \\/ M anipulation | | | |
\*---------------------------------------------------------------------------*/ | |
Build : dev-f6be0d888eec | |
Exec : pimpleFoam | |
Date : May 21 2015 |
We can make this filebeautiful and searchable if this error is corrected: It looks like row 6 should actually have 24 columns, instead of 1 in line 5.
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
#Dir,mx,my,mz,deltaT,endTime,method,nx,ny,nz,simulationType,LESModel,delta,solver,preconditioner,Build,Date,Time,nProcs,nCells,Steps,ExectutionTime0(s),ExectutionTime1(s),ExectutionTime/Steps(s) | |
n_00008/mpi_00001/simulationType_laminar-LESModel_laminar-delta_cubeRootVol-solver_GAMG-smoother_DIC,240,130,96,0.002000,0.022000,scotch,-,-,-,laminar,laminar,cubeRootVol,GAMG,DIC,,,,,,0,0,0,-0 | |
n_00008/mpi_00001/simulationType_laminar-LESModel_laminar-delta_cubeRootVol-solver_GAMG-smoother_DIC,240,130,96,0.002000,0.022000,scotch,-,-,-,laminar,laminar,cubeRootVol,GAMG,DIC,,,,,,0,0,0,-0 | |
n_00008/mpi_00001/simulationType_laminar-LESModel_laminar-delta_cubeRootVol-solver_GAMG-smoother_DIC,240,130,96,0.002000,0.022000,scotch,-,-,-,laminar,laminar,cubeRootVol,GAMG,DIC,,,,,,0,0,0,-0 | |
n_00008/mpi_00001/simulationType_laminar-LESModel_laminar-delta_cubeRootVol-solver_GAMG-smoother_DIC,240,130,96,0.002000,0.022000,scotch,-,-,-,laminar,laminar,cubeRootVol,GAMG,DIC,dev-f6be0d888eec,May 21 2015,08:48:50,1,2995200,0,0,0,-0 | |
n_00008/mp |
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
=================================================== | |
GPU Caps Viewer v1.20.1.1 | |
http://www.ozone3d.net/gpu_caps_viewer/ | |
=================================================== | |
===================================[ System / CPU ] | |
- CPU Name: AMD A10-7850K Radeon R7, 12 Compute Cores 4C+8G | |
- CPU Core Speed: 3718 MHz | |
- CPU logical cores: 4 |
aokomoriuta /MsMpiBoost.cpp
CreatedNovember 25, 2013 03:47
Windows(Visual Studio 2012)上でboost::MPIで並列計算できるようになるまで ref:http://qiita.com/aokomoriuta/items/cecaf3d5a3258606323b 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
#defineMSMPI_NO_DEPRECATE_20 | |
#include<iostream> | |
#include<boost/mpi.hpp> | |
intmain() | |
{ | |
// MPI環境(MPI_InitとFinalizeをやってくれる) | |
boost::mpi::environmentenv(true); |
aokomoriuta /particles.txt
CreatedNovember 5, 2013 13:22
OpenMPS( 52ade37cd1b901d561da7644ea9f7b03698f1f9e 時点)での計算速度計測結果 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
1410 particles | |
8 threads | |
#00000: t= 0.0000 (00000) @ 11/04 21:31:23 ( 0.00) | |
#00001: t= 0.0010 (00002) @ 11/04 21:31:25 ( 1.57) | |
2460 particles | |
8 threads | |
#00000: t= 0.0000 (00000) @ 11/04 21:30:26 ( 0.00) | |
#00001: t= 0.0010 (00002) @ 11/04 21:30:29 ( 3.21) |
aokomoriuta /cuda.log
Last activeDecember 21, 2015 05:18
ViennaCLhttp://viennacl.sourceforge.net/ のblas3ベンチマークhttps://github.com/viennacl/viennacl-dev/blob/master/examples/benchmarks/blas3.cpp (密行列×密行列)をGeForce Titanで走らせてみた結果、CUDAよりOpenCLの方が速いことが分かった 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
---------------------------------------------- | |
Device Info | |
---------------------------------------------- | |
---------------------------------------------- | |
---------------------------------------------- | |
## Benchmark :: Dense Matrix-Matrix product | |
---------------------------------------------- | |
------------------------------- |
NewerOlder