Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ANL-CESAR/XSBench
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v13
Choose a base ref
...
head repository: ANL-CESAR/XSBench
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 12,883 additions and 1,928 deletions.
  1. +19 −0 .github/workflows/cuda.yml
  2. +19 −0 .github/workflows/hip.yml
  3. +27 −0 .github/workflows/omp.yml
  4. +45 −0 .github/workflows/oneapi.yml
  5. +2 −0 .gitignore
  6. +28 −0 .travis.yml
  7. +0 −164 CHANGES
  8. +500 −0 CHANGES.txt
  9. +1 −1 LICENSE
  10. +301 −0 README.md
  11. +0 −363 README.txt
  12. +262 −0 cuda/GridInit.cu
  13. +109 −0 cuda/Main.cu
  14. +77 −0 cuda/Makefile
  15. +116 −0 cuda/Materials.cu
  16. +1,099 −0 cuda/Simulation.cu
  17. +154 −0 cuda/XSbench_header.cuh
  18. +80 −0 cuda/XSutils.cu
  19. +495 −0 cuda/io.cu
  20. BIN docs/img/UEG.png
  21. +277 −0 docs/img/XS_equation.svg
  22. BIN docs/img/logo.png
  23. BIN docs/img/nuclide_grid.png
  24. BIN docs/img/xs_point.png
  25. +252 −0 hip/GridInit.cpp
  26. +108 −0 hip/Main.cpp
  27. +75 −0 hip/Makefile
  28. +116 −0 hip/Materials.cpp
  29. +368 −0 hip/Simulation.cpp
  30. +154 −0 hip/XSbench_header.h
  31. +80 −0 hip/XSutils.cpp
  32. +495 −0 hip/io.cpp
  33. +353 −0 opencl/CLutils.c
  34. +19 −0 opencl/CLutils.h
  35. +176 −0 opencl/GridInit.c
  36. +107 −0 opencl/Main.c
  37. +88 −0 opencl/Makefile
  38. +117 −0 opencl/Materials.c
  39. +305 −0 opencl/Simulation.c
  40. +147 −0 opencl/XSbench_header.h
  41. +58 −0 opencl/XSutils.c
  42. +534 −0 opencl/io.c
  43. +368 −0 opencl/kernel.cl
  44. +177 −0 openmp-offload/GridInit.c
  45. +115 −0 openmp-offload/Main.c
  46. +113 −0 openmp-offload/Makefile
  47. +118 −0 openmp-offload/Materials.c
  48. +401 −0 openmp-offload/Simulation.c
  49. +128 −0 openmp-offload/XSbench_header.h
  50. +48 −0 openmp-offload/XSutils.c
  51. +494 −0 openmp-offload/io.c
  52. +230 −0 openmp-threading/GridInit.c
  53. +123 −0 openmp-threading/Main.c
  54. +42 −58 {src → openmp-threading}/Makefile
  55. +117 −0 openmp-threading/Materials.c
  56. +872 −0 openmp-threading/Simulation.c
  57. +151 −0 openmp-threading/XSbench_header.h
  58. +63 −0 openmp-threading/XSutils.c
  59. +508 −0 openmp-threading/io.c
  60. +0 −124 src/CalculateXS.c
  61. +0 −157 src/GridInit.c
  62. +0 −255 src/Main.c
  63. +0 −188 src/Materials.c
  64. +0 −115 src/XSbench_header.h
  65. +0 −169 src/XSutils.c
  66. +0 −272 src/io.c
  67. +0 −62 src/papi.c
  68. +176 −0 sycl/GridInit.cpp
  69. +118 −0 sycl/Main.cpp
  70. +102 −0 sycl/Makefile
  71. +118 −0 sycl/Materials.cpp
  72. +430 −0 sycl/Simulation.cpp
  73. +154 −0 sycl/XSbench_header.h
  74. +54 −0 sycl/XSutils.cpp
  75. +500 −0 sycl/io.cpp
19 changes: 19 additions & 0 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CUDA Tests

on:
push:
branches: [ master, 'pr/*' ]
pull_request:
branches: [ master ]

jobs:
build-cuda:
runs-on: ubuntu-latest
container: nvidia/cuda:11.0.3-devel-ubuntu20.04
env:
DEBIAN_FRONTEND: noninteractive
BACKEND: cuda
steps:
- uses: actions/checkout@v3
- name: make
run: cd $BACKEND; make -j4
19 changes: 19 additions & 0 deletions .github/workflows/hip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: HIP Tests

on:
push:
branches: [ master, 'pr/*' ]
pull_request:
branches: [ master ]

jobs:
build-hip:
runs-on: ubuntu-latest
container: rocm/dev-ubuntu-22.04:5.4.2-complete
env:
DEBIAN_FRONTEND: noninteractive
BACKEND: hip
steps:
- uses: actions/checkout@v3
- name: make
run: cd $BACKEND; make -j4
27 changes: 27 additions & 0 deletions .github/workflows/omp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: OMP Tests

on:
push:
branches: [ master, 'pr/*' ]
pull_request:
branches: [ master ]

jobs:
omp-run-cpu:
runs-on: ubuntu-latest
env:
DEBIAN_FRONTEND: noninteractive
CC: gcc
BACKEND: openmp-threading
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: make
run: cd $BACKEND; make -j4
- name: run nuclide
run: ./$BACKEND/XSBench -m event -s small -G nuclide
- name: run hash
run: ./$BACKEND/XSBench -m event -s small -G hash
- name: run unionized
run: ./$BACKEND/XSBench -m event -s small -G unionized
45 changes: 45 additions & 0 deletions .github/workflows/oneapi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: SYCL Tests

on:
push:
branches: [ master, 'pr/*' ]
pull_request:
branches: [ master ]

jobs:
sycl-oneapi-run-cpu:
runs-on: ubuntu-latest
container: intel/oneapi-basekit:2023.1.0-devel-ubuntu22.04
env:
DEBIAN_FRONTEND: noninteractive
ONEAPI_DEVICE_SELECTOR: opencl:cpu
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: sycl-ls
run: |
which sycl-ls
sycl-ls
- name: make sycl
run: cd sycl; CC=oneapi make -j4
- name: run sycl nuclide
run: ./sycl/XSBench -m event -s small -G nuclide
- name: run sycl hash
run: ./sycl/XSBench -m event -s small -G hash
- name: run sycl unionized
run: ./sycl/XSBench -m event -s small -G unionized
- name: make openmp-offload
run: cd openmp-offload; COMPILER=intel make -j4
- name: run openmp-offload nuclide
run: ./openmp-offload/XSBench -m event -s small -G nuclide
- name: run openmp-offload hash
run: ./openmp-offload/XSBench -m event -s small -G hash
- name: run openmp-offload unionized
run: ./openmp-offload/XSBench -m event -s small -G unionized
- name: install opencl packages
run: |
apt-get -y update && apt-get install -y --no-install-recommends intel-oneapi-runtime-opencl clinfo opencl-headers intel-opencl-icd
clinfo
- name: make opencl
run: cd opencl; COMPILER=gnu make -j4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.o
*/XSBench
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: c
matrix:
include:

- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
env:
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"

before_install:
- eval "${MATRIX_EVAL}"

script:
- echo $CC
- $CC --version
- cd openmp-threading
- make
- ./XSBench -s small -t 4 -m history -G nuclide
- ./XSBench -s small -t 4 -m history -G hash
- ./XSBench -s small -t 4 -m history -G unionized
- ./XSBench -s small -t 4 -m event -G nuclide
- ./XSBench -s small -t 4 -m event -G hash
- ./XSBench -s small -t 4 -m event -G unionized
164 changes: 0 additions & 164 deletions CHANGES

This file was deleted.

Loading