Skip to content

Commit

Permalink
[Refactor] move popc to under util (#2394)
Browse files Browse the repository at this point in the history
Authors:
  - rhdong (https://github.com/rhdong)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)
  - Divye Gala (https://github.com/divyegala)

URL: #2394
  • Loading branch information
rhdong authored Jul 25, 2024
1 parent 7004a8e commit e75bac6
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 7 deletions.
9 changes: 8 additions & 1 deletion cpp/bench/prims/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,14 @@ if(BUILD_PRIMS_BENCH)
PATH
core/bitset.cu
core/copy.cu
core/popc.cu
main.cpp
)

ConfigureBench(
NAME
UTIL_BENCH
PATH
util/popc.cu
main.cpp
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <common/benchmark.hpp>

#include <raft/core/popc.hpp>
#include <raft/util/popc.cuh>

namespace raft::bench::core {

Expand Down
2 changes: 1 addition & 1 deletion cpp/include/raft/core/bitset.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
#include <raft/core/bitset.hpp>
#include <raft/core/device_container_policy.hpp>
#include <raft/core/device_mdarray.hpp>
#include <raft/core/popc.hpp>
#include <raft/core/resource/thrust_policy.hpp>
#include <raft/core/resources.hpp>
#include <raft/linalg/map.cuh>
#include <raft/linalg/reduce.cuh>
#include <raft/util/device_atomics.cuh>
#include <raft/util/popc.cuh>

#include <thrust/for_each.h>

Expand Down
1 change: 0 additions & 1 deletion cpp/include/raft/sparse/linalg/detail/masked_matmul.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#pragma once

#include <raft/core/bitmap.cuh>
#include <raft/core/detail/popc.cuh>
#include <raft/core/device_csr_matrix.hpp>
#include <raft/core/device_mdarray.hpp>
#include <raft/core/device_mdspan.hpp>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#pragma once
#include <raft/core/detail/popc.cuh>
#include <raft/util/detail/popc.cuh>
namespace raft {

/**
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ if(BUILD_TESTS)
core/math_host.cpp
core/operators_device.cu
core/operators_host.cpp
core/popc.cu
core/handle.cpp
core/interruptible.cu
core/nvtx.cpp
Expand Down Expand Up @@ -509,6 +508,7 @@ if(BUILD_TESTS)
util/integer_utils.cpp
util/integer_utils.cu
util/memory_type_dispatcher.cu
util/popc.cu
util/pow2_utils.cu
util/reduction.cu
)
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/core/popc.cu → cpp/test/util/popc.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
#include <raft/core/device_mdarray.hpp>
#include <raft/core/device_mdspan.hpp>
#include <raft/core/host_mdspan.hpp>
#include <raft/core/popc.hpp>
#include <raft/core/resource/cuda_stream.hpp>
#include <raft/core/resources.hpp>
#include <raft/util/cuda_utils.cuh>
#include <raft/util/popc.cuh>

#include <gtest/gtest.h>

Expand Down

0 comments on commit e75bac6

Please sign in to comment.