CentOS 7 still have Python 2.7 as the default tool. EPEL repository comes up with Python 3. Here’s the way to setup Python 3 and pip3 on CentOS environment.
Type on terminal:
sudo yum install -y python34-setuptools
sudo easy_install-3.4 pip| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <fcntl.h> | |
| #include <sys/stat.h> | |
| #include <sys/mman.h> | |
| #include <unistd.h> | |
| int main(int argc, const char *argv[]) | |
| { |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include "omp.h" | |
| #define MAX_SIZE 10 | |
| //Function for creating an input array||Update accoorind to your need | |
| void generate_list(int * x, int n) { | |
| int i,j,t; |
| using glogs | |
| set(WITH_GFLAGS OFF) | |
| FetchContent_Declare( | |
| glog | |
| URL ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/glog-master.zip | |
| ) | |
| FetchContent_MakeAvailable(glog) | |
| add_executable(glog-test GLogTest.cpp) | |
| target_link_libraries (glog-test glog::glog) |
| sed '/^$/d' | |
| git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master |