Skip to content

Commit

Permalink
Merge pull request #113 from DiamondLightSource/library
Browse files Browse the repository at this point in the history
fixes to go with the gpuloop PR in httomo
  • Loading branch information
dkazanc authored Apr 24, 2024
2 parents 0b6ab7d + e9b0861 commit 063e026
Show file tree
Hide file tree
Showing 26 changed files with 1,125 additions and 1,656 deletions.
7 changes: 4 additions & 3 deletions conda/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ channels:
- anaconda
- astra-toolbox
- httomo
- rapidsai
dependencies:
- conda-forge::cupy
- conda-forge::numpy<=1.23
- conda-forge::cupy=12.3.0
- conda-forge::numpy<=1.24
- conda-forge::nvtx
- conda-forge::scipy
- conda-forge::python
Expand All @@ -22,4 +23,4 @@ dependencies:
- anaconda::h5py
- astra-toolbox::astra-toolbox
- httomo::tomobar

- rapidsai::cucim
1 change: 1 addition & 0 deletions conda/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ requirements:
- python
- numpy
- cupy
- cucim
- astra-toolbox
- nvtx
- tomobar
Expand Down
1 change: 0 additions & 1 deletion httomolibgpu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from .decorator import *
from httomolibgpu.misc.corr import *
from httomolibgpu.misc.morph import *
from httomolibgpu.prep.alignment import *
Expand Down
4 changes: 2 additions & 2 deletions httomolibgpu/cuda_kernels/median_kernel.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
template <typename Type, int diameter>
__global__ void median_general_kernel(const Type *in, Type *out, float dif,
__global__ void median_general_kernel3d(const Type *in, Type *out, float dif,
int Z, int M, int N) {
constexpr int radius = diameter / 2;
constexpr int d3 = diameter * diameter * diameter;
Expand Down Expand Up @@ -53,4 +53,4 @@ __global__ void median_general_kernel(const Type *in, Type *out, float dif,
out[index] =
fabsf(in_value - ValVec[midpoint]) >= dif ? ValVec[midpoint] : in_value;
}
}
}
329 changes: 0 additions & 329 deletions httomolibgpu/decorator.py

This file was deleted.

Loading

0 comments on commit 063e026

Please sign in to comment.