Skip to content

Commit

Permalink
WIP: shuffling around header files.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjbrowning committed Jan 12, 2024
1 parent 712ef16 commit c6e0dbb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(sphericart_examples LANGUAGES C CXX CUDA)
project(sphericart LANGUAGES C CXX CUDA)

add_executable(example_cpp cpp/example.cpp)
target_link_libraries(example_cpp sphericart)
Expand All @@ -13,7 +13,7 @@ add_test(NAME example_c COMMAND ./example_c)
if (CMAKE_CUDA_COMPILER AND SPHERICART_ENABLE_CUDA)

set(CMAKE_CUDA_ARCHITECTURES native)

add_executable(example_cuda cuda/example.cu)
target_link_libraries(example_cuda sphericart)
add_test(NAME example_cuda COMMAND ./example_cuda)
Expand Down
6 changes: 4 additions & 2 deletions examples/cuda/example.cu
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
#include <cuda.h>
#include <cuda_runtime.h>
#include <iostream>

#include <vector>
#include "sphericart_cuda.hpp"

using namespace std;
using namespace sphericart::cuda;

/*host macro that checks for errors in CUDA calls, and prints the file + line
* and error string if one occurs
Expand All @@ -24,7 +26,7 @@
exit(EXIT_FAILURE); \
} \
} while (0)

int main() {
/* ===== set up the calculation ===== */

Expand Down
4 changes: 2 additions & 2 deletions sphericart/include/sphericart_cuda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifndef SPHERICART_CUDA_HPP
#define SPHERICART_CUDA_HPP

#include "sphericart.hpp"
//#include "sphericart.hpp"

namespace sphericart {

Expand All @@ -16,7 +16,7 @@ namespace cuda {
* stores the buffers that are necessary to compute the spherical harmonics
* efficiently.
*/
template <typename T> SPHERICART_EXPORT class SphericalHarmonics {
template <typename T> class SphericalHarmonics {
public:
/** Initialize the SphericalHarmonics class setting maximum degree and
* normalization
Expand Down

0 comments on commit c6e0dbb

Please sign in to comment.