-
Notifications
You must be signed in to change notification settings - Fork 702
Add RISC-V vector spec v1.0 support #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sh-zheng
wants to merge
12
commits into
FFTW:master
Choose a base branch
from
sh-zheng:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8806866
Add RISC-V vector spec v1.0 support
sh-zheng cbf34e4
Merge branch 'FFTW:master' into master
sh-zheng daecbbf
Extend the support of VLEN to 65536
sh-zheng 708a35e
Update to new rvv intrinsic spec, with "__riscv_" prefix
sh-zheng 7a5397b
Merge cycle.h from rdolbeau's rvv branch
sh-zheng ee4d6ed
Merge branch 'FFTW:master' into master
sh-zheng c029e77
Merge branch 'FFTW:master' into master
sh-zheng bdf1f9d
Merge branch 'FFTW:master' into master
sh-zheng d5808c3
Update .gitignore,, and fix compiling error on other platforms.
sh-zheng 36b5b7c
Merge branch 'FFTW:master' into master
sh-zheng 8b51ffe
Merge branch 'FFTW:master' into master
sh-zheng 3c49c94
Merge branch 'FFTW:master' into master
sh-zheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| AM_CPPFLAGS = -I $(top_srcdir) | ||
| SUBDIRS = common sse2 avx avx-128-fma avx2 avx2-128 avx512 kcvi altivec vsx neon generic-simd128 generic-simd256 | ||
| SUBDIRS = common sse2 avx avx-128-fma avx2 avx2-128 avx512 kcvi altivec vsx neon generic-simd128 generic-simd256 rvv128 rvv256 rvv512 rvv1024 | ||
| EXTRA_DIST = n1b.h n1f.h n2b.h n2f.h n2s.h q1b.h q1f.h t1b.h t1bu.h \ | ||
| t1f.h t1fu.h t2b.h t2f.h t3b.h t3f.h ts.h codlist.mk simd.mk |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| SIMD_HEADER=simd-support/simd-rvv1024.h | ||
|
|
||
| include $(top_srcdir)/dft/simd/codlist.mk | ||
| include $(top_srcdir)/dft/simd/simd.mk | ||
|
|
||
| if HAVE_RVV | ||
|
|
||
| BUILT_SOURCES = $(EXTRA_DIST) | ||
| noinst_LTLIBRARIES = libdft_rvv1024_codelets.la | ||
| libdft_rvv1024_codelets_la_SOURCES = $(BUILT_SOURCES) | ||
|
|
||
| endif |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| SIMD_HEADER=simd-support/simd-rvv128.h | ||
|
|
||
| include $(top_srcdir)/dft/simd/codlist.mk | ||
| include $(top_srcdir)/dft/simd/simd.mk | ||
|
|
||
| if HAVE_RVV | ||
|
|
||
| BUILT_SOURCES = $(EXTRA_DIST) | ||
| noinst_LTLIBRARIES = libdft_rvv128_codelets.la | ||
| libdft_rvv128_codelets_la_SOURCES = $(BUILT_SOURCES) | ||
|
|
||
| endif |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| SIMD_HEADER=simd-support/simd-rvv256.h | ||
|
|
||
| include $(top_srcdir)/dft/simd/codlist.mk | ||
| include $(top_srcdir)/dft/simd/simd.mk | ||
|
|
||
| if HAVE_RVV | ||
|
|
||
| BUILT_SOURCES = $(EXTRA_DIST) | ||
| noinst_LTLIBRARIES = libdft_rvv256_codelets.la | ||
| libdft_rvv256_codelets_la_SOURCES = $(BUILT_SOURCES) | ||
|
|
||
| endif |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| SIMD_HEADER=simd-support/simd-rvv512.h | ||
|
|
||
| include $(top_srcdir)/dft/simd/codlist.mk | ||
| include $(top_srcdir)/dft/simd/simd.mk | ||
|
|
||
| if HAVE_RVV | ||
|
|
||
| BUILT_SOURCES = $(EXTRA_DIST) | ||
| noinst_LTLIBRARIES = libdft_rvv512_codelets.la | ||
| libdft_rvv512_codelets_la_SOURCES = $(BUILT_SOURCES) | ||
|
|
||
| endif |
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
|
|
||
| AM_CPPFLAGS = -I $(top_srcdir) | ||
| SUBDIRS = common sse2 avx avx-128-fma avx2 avx2-128 avx512 kcvi altivec vsx neon generic-simd128 generic-simd256 | ||
| SUBDIRS = common sse2 avx avx-128-fma avx2 avx2-128 avx512 kcvi altivec vsx neon generic-simd128 generic-simd256 rvv128 rvv256 rvv512 rvv1024 | ||
| EXTRA_DIST = hc2cbv.h hc2cfv.h codlist.mk simd.mk |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| SIMD_HEADER=simd-support/simd-rvv1024.h | ||
|
|
||
| include $(top_srcdir)/rdft/simd/codlist.mk | ||
| include $(top_srcdir)/rdft/simd/simd.mk | ||
|
|
||
| if HAVE_RVV | ||
|
|
||
| noinst_LTLIBRARIES = librdft_rvv1024_codelets.la | ||
| BUILT_SOURCES = $(EXTRA_DIST) | ||
| librdft_rvv1024_codelets_la_SOURCES = $(BUILT_SOURCES) | ||
|
|
||
| endif |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| SIMD_HEADER=simd-support/simd-rvv128.h | ||
|
|
||
| include $(top_srcdir)/rdft/simd/codlist.mk | ||
| include $(top_srcdir)/rdft/simd/simd.mk | ||
|
|
||
| if HAVE_RVV | ||
|
|
||
| noinst_LTLIBRARIES = librdft_rvv128_codelets.la | ||
| BUILT_SOURCES = $(EXTRA_DIST) | ||
| librdft_rvv128_codelets_la_SOURCES = $(BUILT_SOURCES) | ||
|
|
||
| endif |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| SIMD_HEADER=simd-support/simd-rvv256.h | ||
|
|
||
| include $(top_srcdir)/rdft/simd/codlist.mk | ||
| include $(top_srcdir)/rdft/simd/simd.mk | ||
|
|
||
| if HAVE_RVV | ||
|
|
||
| noinst_LTLIBRARIES = librdft_rvv256_codelets.la | ||
| BUILT_SOURCES = $(EXTRA_DIST) | ||
| librdft_rvv256_codelets_la_SOURCES = $(BUILT_SOURCES) | ||
|
|
||
| endif |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| SIMD_HEADER=simd-support/simd-rvv512.h | ||
|
|
||
| include $(top_srcdir)/rdft/simd/codlist.mk | ||
| include $(top_srcdir)/rdft/simd/simd.mk | ||
|
|
||
| if HAVE_RVV | ||
|
|
||
| noinst_LTLIBRARIES = librdft_rvv512_codelets.la | ||
| BUILT_SOURCES = $(EXTRA_DIST) | ||
| librdft_rvv512_codelets_la_SOURCES = $(BUILT_SOURCES) | ||
|
|
||
| endif |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| /* | ||
| * Copyright (c) 2003, 2007-14 Matteo Frigo | ||
| * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology | ||
| * | ||
| * This program is free software; you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation; either version 2 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program; if not, write to the Free Software | ||
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| * | ||
| */ | ||
|
|
||
|
|
||
| #include "kernel/ifftw.h" | ||
| #include <riscv_vector.h> | ||
|
|
||
| #if HAVE_RVV | ||
| /* don't know how to autodetect RVV; assume it is present */ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Detect RVV at run-time: #include <sys/auxv.h>
if (getauxval(AT_HWCAP) & HWCAP_ISA_V)
{
}It's not detect
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you so much. I will try this detection. |
||
| int X(have_simd_rvv)(int rs) | ||
| { | ||
| return vsetvlmax_e64m1() == (rs / 64); | ||
| } | ||
| #endif | ||
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.