forked from website/openpower.foundation
add opf resources section
* add & sanitize all resources from old website * create resource layout similar to ready layout Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>jamesk-patch-1
parent
6151df5f1d
commit
ac60ba3482
@ -0,0 +1,9 @@
|
||||
---
|
||||
title: OpenPOWER Related Resources
|
||||
output:
|
||||
- html
|
||||
- json
|
||||
- rss
|
||||
date: 2022-01-04
|
||||
draft: false
|
||||
---
|
@ -0,0 +1,16 @@
|
||||
---
|
||||
title: OpenPOWER Foundation Development Platform Reference SP010 Design
|
||||
link: https://files.openpower.foundation/s/qKxzR9oPRnygpQp
|
||||
tags:
|
||||
- system
|
||||
- power8
|
||||
- referencedesign
|
||||
- tyan
|
||||
- sp010
|
||||
date: 2016-04-24
|
||||
draft: false
|
||||
---
|
||||
|
||||
Collection of hardware designs for the SP010 POWER8 reference platform.
|
||||
This OpenPOWER Development Platform Workgroup Note provides the material used for the design of
|
||||
the Tyan SP010 development system as a reference for developers of OpenPOWER systems based on the IBM POWER8 chipset.
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
title: IBM CAPI Developers Community
|
||||
link: https://www.ibm.com/developerworks/community/groups/community/CAPI_Developers_Community
|
||||
tags:
|
||||
- capi
|
||||
- accelerator
|
||||
- acceleration
|
||||
date: 2016-03-24
|
||||
draft: true
|
||||
---
|
||||
|
||||
The CAPI Developers Community is intended to enable POWER8 CAPI Developer Kit users to collaborate with other users on
|
||||
usage, issues, questions & to innovate.
|
||||
|
||||
** DEPRICATED - UPDATE BEFORE PUBLISHING **
|
@ -0,0 +1,16 @@
|
||||
---
|
||||
title: IBM Performance Optimization and Tuning Techniques for IBM Power Systems Processors Including IBM POWER8
|
||||
link: https://www.redbooks.ibm.com/abstracts/sg248171.html
|
||||
tags:
|
||||
- software
|
||||
- toolchain
|
||||
- compilers
|
||||
date: 2016-03-26
|
||||
draft: false
|
||||
---
|
||||
|
||||
This IBM® Redbooks® publication focuses on gathering the correct technical information,
|
||||
and laying out simple guidance for optimizing code performance on IBM POWER8® processor-based systems.
|
||||
There is straightforward performance optimization that can be performed with a minimum of effort and
|
||||
without extensive previous experience or in-depth knowledge.
|
||||
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
title: IBM Guide to port Linux on x86 applications to Linux on Power
|
||||
link: https://power-developer.mybluemix.net/porting-guide/
|
||||
tags:
|
||||
- linux
|
||||
- porting
|
||||
- developer
|
||||
date: 2016-03-25
|
||||
draft: false
|
||||
---
|
||||
|
||||
Step-by-step IBM Developer Portal guide for porting applications from x86 Linux to POWER,
|
||||
including application assessment, port planning and selecting development tools.
|
@ -0,0 +1,20 @@
|
||||
---
|
||||
title: IBM POWER10 Functional Simulator
|
||||
link: https://www14.software.ibm.com/webapp/set2/sas/f/pwrfs/pwr10/home.html
|
||||
tags:
|
||||
- power10
|
||||
- simulator
|
||||
- cpu
|
||||
- processor
|
||||
- isa
|
||||
date: 2022-01-09
|
||||
draft: false
|
||||
---
|
||||
|
||||
The IBM POWER10 Functional Simulator is a simulation environment developed by IBM.
|
||||
It is designed to provide enough POWER10 processor complex functionality to allow the entire software stack to execute,
|
||||
including loading, booting and running a little endian Linux environment.
|
||||
The intent for this tool is to educate, enable new application development,
|
||||
and to facilitate porting of existing Linux applications to the POWER10 architecture.
|
||||
While the IBM POWER10 Functional Simulator serves as a full instruction set simulator for the POWER10 processor,
|
||||
it may not model all aspects of the IBM Power Systems POWER10 hardware and thus may not exactly reflect the behavior of the POWER10 hardware.
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
title: IBM POWER8 Dellovo
|
||||
link: https://www-50.ibm.com/systems/power/openpower/tgcmDocumentRepository.xhtml?aliasId=POWER8_with_NVIDIA_NVLink
|
||||
tags:
|
||||
- processor
|
||||
- cpu
|
||||
- power8
|
||||
date: 2022-01-07
|
||||
draft: false
|
||||
---
|
||||
|
||||
The POWER8 Dellovo is based on IBM® Power Architecture®, IBM® POWER8® with NVIDIA® NVLink™ Technology systems are designed
|
||||
for use in high-performance computing (HPC) and data analytics systems.
|
||||
They consist of superscalar multiprocessors that are massively multithreaded.
|
||||
The NVLink interconnect enables ultra-fast communication between the central processing unit (CPU) and
|
||||
the graphics processing unit (GPU) and between GPUs.
|
||||
POWER8 with NVLink systems incorporate the high-speed differential POWER8 Memory Buffer, which supports several DDR technologies.
|
@ -0,0 +1,19 @@
|
||||
---
|
||||
title: IBM POWER8 Functional Simulator
|
||||
link: https://www14.software.ibm.com/webapp/set2/sas/f/pwrfs/home.html
|
||||
tags:
|
||||
- power8
|
||||
- simulator
|
||||
- cpu
|
||||
- isa
|
||||
date: 2022-01-09
|
||||
draft: false
|
||||
---
|
||||
|
||||
The IBM POWER8 Functional Simulator is a simulation environment developed by IBM.
|
||||
It is designed to provide enough POWER8 processor complex functionality to allow the entire software stack to execute,
|
||||
including loading, booting and running a Fedora 20 BE (Big Endian) kernel image or a Debian LE (Little Endian) kernel image.
|
||||
The intent for this tool is to educate, enable new application development,
|
||||
and to facilitate porting of existing Linux applications to the POWER8 architecture.
|
||||
While the IBM POWER8 Functional Simulator serves as a full instruction set simulator for the POWER8 processor,
|
||||
it may not model all aspects of the IBM Power Systems POWER8 hardware and thus may not exactly reflect the behavior of the POWER8 hardware.
|
@ -0,0 +1,16 @@
|
||||
---
|
||||
title: IBM POWER8 Turismo
|
||||
link: https://www-50.ibm.com/systems/power/openpower/tgcmDocumentRepository.xhtml?aliasId=POWER8
|
||||
tags:
|
||||
- processor
|
||||
- cpu
|
||||
- power8
|
||||
date: 2021-01-07
|
||||
draft: false
|
||||
---
|
||||
|
||||
The IBM POWER8 Turismo CPU is based on IBM® Power Architecture®, IBM® POWER8® systems are optimized for the cloud, big data, and analytics.
|
||||
They consist of superscalar multiprocessors that are massively multithreaded.
|
||||
POWER8 systems incorporate the high-speed differential POWER8 memory buffer, which supports several DDR technologies.
|
||||
POWER8 systems use the Coherent Accelerator Processor Interface (CAPI) to attach specialized processors,
|
||||
and permit them direct access to the memory address space.
|
@ -0,0 +1,20 @@
|
||||
---
|
||||
title: IBM POWER9 Functional Simulator
|
||||
link: https://www14.software.ibm.com/webapp/set2/sas/f/pwrfs/pwr9/home.html
|
||||
tags:
|
||||
- power9
|
||||
- simulator
|
||||
- cpu
|
||||
- processor
|
||||
- isa
|
||||
date: 2022-01-09
|
||||
draft: false
|
||||
---
|
||||
|
||||
The IBM POWER9 Functional Simulator is a simulation environment developed by IBM.
|
||||
It is designed to provide enough POWER9 processor complex functionality to allow the entire software stack to execute,
|
||||
including loading, booting and running a little endian Linux environment.
|
||||
The intent for this tool is to educate, enable new application development,
|
||||
and to facilitate porting of existing Linux applications to the POWER9 architecture.
|
||||
While the IBM POWER9 Functional Simulator serves as a full instruction set simulator for the POWER9 processor,
|
||||
it may not model all aspects of the IBM Power Systems POWER9 hardware and thus may not exactly reflect the behavior of the POWER9 hardware.
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
title: IBM POWER9 LaGrange
|
||||
link: https://www-50.ibm.com/systems/power/openpower/tgcmDocumentRepository.xhtml?aliasId=POWER9_LaGrange
|
||||
tags:
|
||||
- processor
|
||||
- cpu
|
||||
- power9
|
||||
date: 2022-01-07
|
||||
draft: false
|
||||
---
|
||||
|
||||
The IBM POWER9 LaGrange is based on IBM® Power Architecture®, IBM POWER9 systems target technical computing segments
|
||||
by providing superior floating-point performance and off-chip floating-point acceleration.
|
||||
POWER9 systems, which consist of superscalar multiprocessors that are massively multithreaded, support Cloud operating environments.
|
||||
With the Coherent Accelerator Processor Interface (CAPI) attached, POWER9 systems offer a robust platform for analytics and big data applications.
|
||||
|
||||
The POWER9 LaGrange module has the following key characteristics: 68.5 mm x 68.5 mm, FC-PLGA, 8 DDR4, 42 PCIe Lanes and 2 XBus 4B
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
title: IBM POWER9 Monza
|
||||
link: https://www-50.ibm.com/systems/power/openpower/tgcmDocumentRepository.xhtml?aliasId=POWER9_Monza
|
||||
tags:
|
||||
- processor
|
||||
- cpu
|
||||
- power9
|
||||
date: 2021-01-07
|
||||
draft: false
|
||||
---
|
||||
|
||||
The IBM POWER9 Monza is based on IBM® Power Architecture®,
|
||||
IBM POWER9 systems target technical computing segments by providing superior floating-point performance and off-chip floating-point acceleration.
|
||||
POWER9 systems, which consist of superscalar multiprocessors that are massively multithreaded, support Cloud operating environments.
|
||||
With the Coherent Accelerator Processor Interface (CAPI) attached, POWER9 systems offer a robust platform for analytics and big data applications.
|
||||
|
||||
The POWER9 Monza module has the following key characteristics: 68.5 mm x 68.5 mm, FC-PLGA, 8 DDR4, 34 PCIe Lanes and 1 XBus 4B
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
title: IBM POWER9 Sforza
|
||||
link: https://www-50.ibm.com/systems/power/openpower/tgcmDocumentRepository.xhtml?aliasId=POWER9_Sforza
|
||||
tags:
|
||||
- processor
|
||||
- cpu
|
||||
- power9
|
||||
date: 2022-01-07
|
||||
draft: false
|
||||
---
|
||||
|
||||
The IBM POWER9 Sforza is based on IBM® Power Architecture®,
|
||||
IBM POWER9 systems target technical computing segments by providing superior floating-point performance and off-chip floating-point acceleration.
|
||||
POWER9 systems, which consist of superscalar multiprocessors that are massively multithreaded, support Cloud operating environments.
|
||||
With the Coherent Accelerator Processor Interface (CAPI) attached, POWER9 systems offer a robust platform for analytics and big data applications.
|
||||
|
||||
The POWER9 Sforza module has the following key characteristics: 50 mm x 50 mm, FC-PLGA, 4 DDR4, 48 PCIe Lanes and 1 XBus 4B
|
@ -0,0 +1,14 @@
|
||||
---
|
||||
title: IBM Power Development Cloud
|
||||
link: https://www-304.ibm.com/partnerworld/wps/servlet/ContentHandler/stg_com_sys_power-development-platform
|
||||
tags:
|
||||
- cloud
|
||||
- hardwareaccess
|
||||
- virtualmachine
|
||||
date: 2016-03-24
|
||||
draft: false
|
||||
---
|
||||
|
||||
The Power Cloud that enables developers offers no-charge remote access to IBM hardware,
|
||||
including IBM POWER9, IBM POWER8 and IBM POWER7+ processor-based servers on the Linux, IBM AIX and IBM i operating systems.
|
||||
PDP is intended for Development, Porting and Functional testing.
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
title: IBM Software Development Toolkit for Linux on Power (no charge)
|
||||
link: https://developer.ibm.com/linuxonpower/sdk/
|
||||
tags:
|
||||
- software
|
||||
- compiler
|
||||
- toolchain
|
||||
- softwaredevelopmentkit
|
||||
- eclipse
|
||||
date: 2022-01-04
|
||||
draft: false
|
||||
---
|
||||
|
||||
The IBM Software Development Kit for Linux on Power (SDK) is a free, Eclipse-based Integrated Development Environment (IDE).
|
||||
The SDK integrates C/C++ source development with the Advance Toolchain, Post-Link Optimization,
|
||||
and classic Linux performance analysis tools, including Oprofile, Perf and Valgrind.
|
||||
|
@ -0,0 +1,16 @@
|
||||
---
|
||||
title: Minicloud by Unicamp
|
||||
link: https://openpower.ic.unicamp.br/minicloud/index.html
|
||||
tags:
|
||||
- cloud
|
||||
- power8
|
||||
- power9
|
||||
date: 2021-01-07
|
||||
draft: true
|
||||
---
|
||||
|
||||
The FREE OpenPOWER Cloud by Unicamp.
|
||||
|
||||
The Minicloud is hosted by the University of Campinas - Unicamp, which is an academic member of the OpenPower Foundation.
|
||||
It provides free access to Power® virtual machines that can be used for development, testing or migration of applications to Power®.
|
||||
The virtual machines of Minicloud run on OpenStack®, which supports running a large number of virtual machines on a single scale-out Linux server.
|
@ -0,0 +1,20 @@
|
||||
---
|
||||
title: OpenPOWER Abstraction Layer (OPAL) Firmware
|
||||
link: https://github.com/open-power
|
||||
tags:
|
||||
- software
|
||||
- firmware
|
||||
- linux
|
||||
- hostboot
|
||||
- petitboot
|
||||
- skiboot
|
||||
- sbe
|
||||
- occ
|
||||
- opal
|
||||
date: 2016-03-24
|
||||
draft: false
|
||||
---
|
||||
|
||||
This is the official repository for the open source OpenPOWER firmware implementation.
|
||||
It contains the repositories for firmware components, along with the build system to produce firmware builds
|
||||
for a large range of existing hardware platforms.
|
@ -0,0 +1,30 @@
|
||||
---
|
||||
title: Porting and Benchmarking of BWAKIT pipeline on Open POWER architecture
|
||||
link:
|
||||
tags:
|
||||
- software
|
||||
- hardware
|
||||
- power8
|
||||
- genomemapping
|
||||
date: 2017-09-20
|
||||
draft: false
|
||||
---
|
||||
|
||||
This paper describes how to port various pre-built application binaries used in BWAKIT into OpenPOWER architecture and
|
||||
execute the BWAKIT pipeline successfully.
|
||||
|
||||
Next Generation Sequencing (NGS) technology produces large volume of genome data,
|
||||
which gets processed using various open source Bioinformatics tools.
|
||||
The configuration and compilation of some of the bioinformatics tools (e.g. BWAKIT, root) are challenging,
|
||||
requiring application porting for some architectures (e.g. IBM Power).
|
||||
Moreover, the application porting should not change the semantics of the program and output generated
|
||||
from different architectures should be similar across different architectures.
|
||||
Burrows-Wheeler Aligner (BWA) is the most popular genome mapping application used in BWAKIT toolset.
|
||||
The BWAKIT provides pre-compiled binaries for x86_64 architecture and end-to-end solution for genome mapping.
|
||||
This paper describes how to port various pre-built application binaries used in BWAKIT into OpenPOWER architecture and
|
||||
execute the BWAKIT pipeline successfully.
|
||||
In addition, it reports the validation of the output results on OpenPOWER to confirm the successful porting of BWAKIT.
|
||||
|
||||
_Note: This paper is the result of collaboration within members of the Personalized Medicine Workgroup and Sidra medical and Research Center._
|
||||
|
||||
|
@ -0,0 +1,33 @@
|
||||
---
|
||||
title: Power Vector Library
|
||||
|
||||
|
||||
tags:
|
||||
- software
|
||||
- vector
|
||||
- vsx
|
||||
- vmx
|
||||
- powervector
|
||||
- library
|
||||
date: 2022-01-08
|
||||
draft: false
|
||||
---
|
||||
|
||||
The Power Vector Library are header files that contain useful functions leveraging the PowerISA Vector Facilities :
|
||||
Vector Multimedia Extension (VMX AKA Altivec) and Vector Scalar Extension (VSX). Larger functions like
|
||||
quadword multiply and multiple quadword multiply and madd are large enough to justify CPU specific and tuned run-time libraries.
|
||||
The user can choose to bind to platform specific static archives or dynamic shared object libraries which automatically
|
||||
(dynamic linking with IFUNC resolves) select the correct implementation for the CPU it is running on.
|
||||
|
||||
The goal of this project to provide well crafted implementations of useful vector and large number operations :
|
||||
|
||||
- Provide equivalent functions across versions of the PowerISA.
|
||||
For example the Vector Multiply-by-10 Unsigned Quadword operations introduced in PowerISA 3.0 (POWER9) can be
|
||||
implement in a few vector instructions on earlier PowerISA versions.
|
||||
- Provide equivalent functions across versions of the compiler.
|
||||
For example builtins provided in later versions of the compiler can be implemented as inline functions with inline asm in earlier compiler versions.
|
||||
- Provide higher order functions not provided directly by the PowerISA.
|
||||
For example vector SIMD implementation for ASCII ``__isalpha``, etc.
|
||||
Another example full ``__int128`` implementations of Count Leading Zeros, Population Count, and Multiply.
|
||||
- Provide optimized run-time libraries for quadword integer multiply and multi-quadword integer multiply and add.
|
||||
|
@ -0,0 +1,77 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
<main id="main" class="main ready">
|
||||
<section id="ready">
|
||||
<div id="ready" class="container-fluid">
|
||||
<div class="section-header">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 text-center">
|
||||
<h1 class="section-title text-center">{{ .Title }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-2"> </div>
|
||||
<div class="col-lg-8">{{ .Content }}</div>
|
||||
<div class="col-lg-2"> </div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<span class="section-divider"></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-2"> </div>
|
||||
<div class="col-lg-8 text-center">
|
||||
<script src="{{ "/lib/search//jquery-3.3.1.min.js" | relURL }}"></script>
|
||||
<script src="{{ "/lib/search/fuse-3.2.0.min.js" | relURL }}"></script>
|
||||
<script src="{{ "/lib/search/jquery.mark-8.11.1.min.js" | relURL }}"></script>
|
||||
<script>var jsonfile = "{{ .RelPermalink }}/index.json"</script>
|
||||
{{ $searchjavascript := resources.Get "js/search.js" }}
|
||||
{{ $searchjs := $searchjavascript | resources.Minify }}
|
||||
<script src="{{ $searchjs.RelPermalink }}"></script>
|
||||
<div class="my-auto" >
|
||||
<form action="{{ .RelPermalink }}" onkeyup="executeInlineSearch()">
|
||||
<input id="search-query" placeholder="Search..." name="s" autocomplete="off" search autofocus/>
|
||||
</form>
|
||||
<div id="search-results"><h3 class="search-results-title mb-4">Matching items</h3></div>
|
||||
</div>
|
||||
<script id="search-result-template" type="text/x-js-template">
|
||||
<div class="search-results-summary">
|
||||
<div class="search-results" id="summary-${key}">
|
||||
<h4><a class="search-item" href="${link}">${title}</a></h4>
|
||||
${ isset tags }<p>${tags}</p>${ end }
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
</div>
|
||||
<div class="col-lg-2"> </div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<span class="section-divider"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
{{ range (.Paginate .Data.Pages.ByTitle 30).Pages }}
|
||||
{{ $imagename := .Param "image" }}
|
||||
{{ $imagelocation := (printf "%s/%s" "images/resources/" $imagename) }}
|
||||
{{ $imageresource := resources.Get $imagelocation }}
|
||||
<article class="post__article col-md-4">
|
||||
{{ if $imageresource }}
|
||||
<div class="post__thumb">
|
||||
{{ $image := $imageresource.Resize "50x50 webp" }}
|
||||
<img class="img-fluid" src="{{ $image.RelPermalink }}" width="50" height="50" alt="{{ .Title }}">
|
||||
</div>
|
||||
{{ end }}
|
||||
<a class="post__title btn btn-outline-primary" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4"> </div>
|
||||
<div class="col-lg-4 text-center">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</div>
|
||||
<div class="col-lg-4"> </div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
{{ partial "footer.html" . }}
|
@ -0,0 +1,5 @@
|
||||
{{- $.Scratch.Add "index" slice -}}
|
||||
{{- range .Data.Pages -}}
|
||||
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .Permalink "contents" .Plain "tags" .Params.tags) }}
|
||||
{{- end -}}
|
||||
{{- $.Scratch.Get "index" | jsonify -}}
|
@ -0,0 +1,91 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
<main id="main">
|
||||
<section id="page" class="section-bg">
|
||||
<div class="container-fluid">
|
||||
<div class="section-header">
|
||||
<h2 class="section-title text-center">{{ .Title }}</h2>
|
||||
<p class="section-description"></p>
|
||||
<span class="section-divider"></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-2"> </div>
|
||||
<div class="col-lg-6">
|
||||
{{ if .Param "link" }}
|
||||
<a href="{{ .Param "link" }}">{{ .Param "link" }} <i class="fas fa-external-link-alt"></i></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="col-lg-4"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-2"> </div>
|
||||
<div class="col-lg-6 content wow fadeInTop">
|
||||
<p>{{ .Content }}</p>
|
||||
{{ if .Param "image" }}
|
||||
<p> </p>
|
||||
{{ $imagename := .Param "image" }}
|
||||
{{ $imagelocation := (printf "%s/%s" "images/ready/" $imagename) }}
|
||||
{{ $imageresource := resources.Get $imagelocation }}
|
||||
{{ $image := $imageresource.Fit "600x600 webp" }}
|
||||
<p><img src="{{ $image.RelPermalink }}" alt="{{ .Title }}" title="{{ .Title }}"></p>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="col-lg-4 details">
|
||||
<ul>
|
||||
{{ if .Param "vendor" }}
|
||||
<li>Vendor : {{ .Param "vendor" }}</li>
|
||||
{{ end }}
|
||||
{{ if .Param "criteria" }}
|
||||
<li>Criteria Version : {{ .Param "criteria" }}</li>
|
||||
{{ end }}
|
||||
<li>Date Added : {{ .Date.Format "2 January 2006" }}</li>
|
||||
</ul>
|
||||
{{ if .Params.tags }}
|
||||
{{ $tags := .Params.tags }}
|
||||
<h4>Tags</h4>
|
||||
<ul id="tags">
|
||||
<li>
|
||||
{{ if not (eq (len $.Site.Taxonomies.tags) 0) }}
|
||||
{{ $fontUnit := "rem" }}
|
||||
{{ $largestFontSize := 3.5 }}
|
||||
{{ $smallestFontSize := 0.5 }}
|
||||
{{ $fontSpread := sub $largestFontSize $smallestFontSize }}
|
||||
{{ $max := add (len (index $.Site.Taxonomies.tags.ByCount 0).Pages) 1 }}
|
||||
{{ $min := len (index $.Site.Taxonomies.tags.ByCount.Reverse 0).Pages }}
|
||||
{{ $spread := sub $max $min }}
|
||||
{{ $fontStep := div $fontSpread $spread }}
|
||||
{{ range $name, $taxonomy := $.Site.Taxonomies.tags }}
|
||||
{{ $currentTagCount := len $taxonomy.Pages }}
|
||||
{{ $currentFontSize := (add $smallestFontSize (mul (sub $currentTagCount $min) $fontStep) ) }}
|
||||
{{ $count := len $taxonomy.Pages }}
|
||||
{{ $weigth := div (sub (math.Log $count) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }}
|
||||
{{ $currentFontSize := (add $smallestFontSize (mul (sub $largestFontSize $smallestFontSize) $weigth) ) }}
|
||||
{{ range $tags }}
|
||||
{{ if eq $name . }}
|
||||
|
||||
<span style="font-size: {{ $currentFontSize }}{{ $fontUnit }}">{{ $name }}</span>
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-1"> </div>
|
||||
<div class="col-lg-10 text-center">
|
||||
<span class="ready-footer">
|
||||
The OpenPOWER Foundation cannot vouch for information on external sites, links to these are provided as best effort.
|
||||
In no way does the OpenPOWER Foundation endorse or approve the content on external sites, links.
|
||||
This is information is kept up to date as frequent as possible.
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-lg-1"> </div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
{{ partial "footer.html" . }}
|
Loading…
Reference in New Issue