View gakkai.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View test.cpp
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 <cstdio> | |
double func(double a){ | |
for (int i=0;i<100000000;i++){ | |
a = a * 3.0; | |
if (a > 1.0) a -= 1.0; | |
if (a > 1.0) a -= 1.0; | |
} | |
return a; | |
} |
View test.cpp
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 <cstdio> | |
#include <vector> | |
int main(int argv, char **argc){ | |
MPI_Init(&argv, &argc); | |
int rank; | |
MPI_Comm_rank(MPI_COMM_WORLD, &rank); | |
int send_buf[] = {3,5,3,1,6,7,8,8}; | |
int count = sizeof(send_buf)/sizeof(int); |
View main.cpp
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 <cstdio> | |
#include <algorithm> | |
#include <random> | |
int main(){ | |
std::mt19937 mt; | |
double s = 0.0; | |
std::uniform_real_distribution<double> ud(0.0, 1.0); | |
for (int i = 0; i < 1000000; i++) s+=ud(mt); | |
printf("%f\n",s); |
View main.cpp
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 <algorithm> | |
#include <random> | |
#include <cstdio> | |
int main(void) { | |
std::mt19937 mt(1); | |
int s = 0; | |
for (int i = 0; i < 100; i++) { | |
std::uniform_real_distribution<double> ud(0.0, 1.0); | |
for(int j=0;j<10000;j++){ |
View test.cpp
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 <arm_sve.h> | |
#include <iostream> | |
#include <vector> | |
#include <random> | |
void show_pr(svbool_t tp) { | |
int n = svcntb(); | |
std::vector<int8_t> a(n); | |
std::vector<int8_t> b(n); | |
std::fill(a.begin(), a.end(), 1); |
View test.cpp
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 <cstdio> | |
#include <omp.h> | |
const int N = 8; | |
int d[N] = {}; | |
int main() { | |
int tid; | |
#pragma omp parallel for schedule(static) | |
for (int i = 0; i < N; i++) { |
View test.cpp
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 <cstdio> | |
#include <cstdlib> | |
#include <string> | |
void save_data(const std::string filename) { | |
printf("%s\n", filename.c_str()); | |
} | |
int main() { | |
std::string filename; |
View test.cpp
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 <cstdio> | |
#include <fstream> | |
#include <random> | |
#include <string> | |
#include <vector> | |
const int L = 64; | |
const int N = L * L; | |
std::vector<int> spins(L *L); |
View sve_check.cpp
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 <cstdio> | |
#ifdef __ARM_FEATURE_SVE | |
#include <arm_sve.h> | |
#endif | |
int main() { | |
int n = 0; | |
#ifdef __ARM_FEATURE_SVE | |
n = svcntb() * 8; | |
#endif |
NewerOlder