Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaldu committed Jan 16, 2024
1 parent c4bf514 commit 7e05d91
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions CLUEstering/alpaka/BindingModules/CLUEstering.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,28 +573,31 @@ def run_clue(self,
device_id)
elif backend == "cpu tbb":
if tbb_found:
cluster_id_is_seed = cpu_tbb.mainRun(self.dc_, self.rhoc, self.outlier, self.ppbin,
self.clust_data.coords, self.clust_data.weight,
self.kernel, self.clust_data.n_dim, block_size,
cluster_id_is_seed = cpu_tbb.mainRun(self.dc_, self.rhoc, self.outlier,
self.ppbin, self.clust_data.coords,
self.clust_data.weight, self.kernel,
self.clust_data.n_dim, block_size,
device_id)
else:
print("TBB module not found. Please re-compile the library and try again.")

elif backend == "gpu cuda":
if cuda_found:
cluster_id_is_seed = gpu_cuda.mainRun(self.dc_, float(self.rhoc), self.outlier, self.ppbin,
self.clust_data.coords, self.clust_data.weight,
self.kernel, self.clust_data.n_dim, block_size,
cluster_id_is_seed = gpu_cuda.mainRun(self.dc_, self.rhoc, self.outlier,
self.ppbin, self.clust_data.coords,
self.clust_data.weight, self.kernel,
self.clust_data.n_dim, block_size,
device_id)
else:
print("CUDA module not found. Please re-compile the library and try again.")

elif backend == "gpu hip":
if hip_found:
cluster_id_is_seed = gpu_hip.mainRun(self.dc_, float(self.rhoc), self.outlier, self.ppbin,
self.clust_data.coords, self.clust_data.weight,
self.kernel, self.clust_data.n_dim, block_size,
device_id)
cluster_id_is_seed = gpu_hip.mainRun(self.dc_, self.rhoc, self.outlier,
self.ppbin, self.clust_data.coords,
self.clust_data.weight, self.kernel,
self.clust_data.n_dim, block_size,
device_id)
else:
print("HIP module not found. Please re-compile the library and try again.")

Expand Down

0 comments on commit 7e05d91

Please sign in to comment.