Zhang Jian

「Hello World」

How to Encrypt Your Website (private)

简要介绍对静态网站独立网页加密的方法

Learn Makefiles (3)

Getting Advanced: Commands and execution, Variables Pt. 2

Commands and execution Command Echoing/Silencing 在每一个命令之前加上@可以禁止打印输出,你也可以在运行make时加上-s实现在每一个命令之前加上@的效果。 1 2 3 all: @echo "This make line will not be printed" echo "But this will" Command Exe...

oneDAL Learning (1)

getting started

简介 本文是对oneDAL的一个简单介绍,主要参考onedal官方文档 oneDAL是一个高性能的数据分析库,其包含了数据分析的所有阶段(preprocessing, transformation, analysis, modeling, validation, and decision making)。oneDAL支持了批量、在线以及分布式的计算模式,其主要提供了两组C++接口...

Learn Makefiles (2)

Getting Advanced: Targets, Automatic Variables and Wildcards, Fancy Rules

本文是对Makefile Cookbook的简要翻译 Targets The all target 如果想要同时运行所有的target,可以使用all target。之所以可以这样,原因是:如果不指定target,make总是运行第一条rule。 1 2 3 4 5 6 7 8 9 10 11 all: one two three one: touch one two: tou...

SSH Connect Docker Container

简介 使用ssh直接连接到docker的容器中是一件很有价值的事情,例如你在部署vscode远程服务时,可以在保证容器与宿主机环境隔离同时,使得vscode对容器的存在完全无感。接下来,我们简单介绍下如何实现ssh直连docker容器。 方法 如何实现ssh连接container?其步骤主要可以分为:获取宿主机IP,安装docker,运行容器(设置端口转发,容器自启动),在容器中安装s...

Learn Makefiles (1)

Getting Started

本文是对Makefile Cookbook的简要翻译 为什么需要makefile makefile用于决定一个大型的程序的哪一部分需要被重新编译。在大部分的情况下,其被用来编译c或c++文件。其他语言通常有自己的工具,其用途与make类似。此外,当一部分文件出现变化,你需要根据这些文件运行一系列指令时,也可以使用make。当然,本教程主要关注c/c++的编译。 make的版本 在...

TBB Sample 01

Count Strings

简介 The example counts the number of unique words in a text. code 细节 重载hash 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 namespace std { template <typename CharT, typename Traits, t...

TBB Introduction

A summary of tbb documentation

1. 简介 OneTBB Benifits oneTBB enables you to specify logical paralleism instead of threads. oneTBB targets threading for performance. oneTBB is compatible with other threading packages. o...

Vtune Usage

前言 最近在研究vtune,试着用其进行代码性能的分析,主要看了snapshot和hotspot两个analysis type。 vtune的安装可以使用官方的docker,或者自己安装oneAPI。我使用的是apt install,脚本如下。 1 2 3 4 5 6 7 8 9 10 11 12 13 apt-get install -y --no-install-recommend...