Skip to content

Commit

Permalink
A few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranshila committed May 6, 2023
1 parent efb12bf commit 3b9179f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 0 additions & 4 deletions Applications/Candidates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

#include "hd/Candidates.hpp"

#include "tmutil.h"

#include <fstream>

#include <libgen.h>
Expand Down Expand Up @@ -51,8 +49,6 @@ Candidate::Candidate(const char *line, unsigned _beam_number) {
}

Candidate::~Candidate() {
// cerr << "Candiate::~Candidate beam=" << beam << " sample_idx=" <<
// sample_idx << endl;
}

void Candidate::header() {
Expand Down
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)

# Setup project definition
project(heimdall VERSION 0.1 LANGUAGES CUDA CXX)
project(heimdall VERSION 0.1 LANGUAGES CXX CUDA)

# specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
Expand All @@ -17,8 +17,6 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# Define dependencies
include(GNUInstallDirs)
# CUDAToolkit
find_package(CUDAToolkit REQUIRED)
# Thrust
find_package(Thrust REQUIRED CONFIG)
thrust_create_target(Thrust)
Expand Down
1 change: 0 additions & 1 deletion Formats/PSRDadaRingBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ using std::endl;
#include "hd/PSRDadaRingBuffer.hpp"

#include "ascii_header.h"
#include "tmutil.h"

//#define _DEBUG

Expand Down
7 changes: 3 additions & 4 deletions Formats/SigprocFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <stdexcept>

using std::cerr;
using std::cout;
using std::endl;

#include "hd/SigprocFile.hpp"
Expand Down Expand Up @@ -82,8 +81,8 @@ size_t SigprocFile::get_data(size_t nsamps, char *data) {
}
float mean = sum / nfloats;

offset = (2 ^ 31) - mean;
scale = (max_float - min_float) / (2 ^ 28);
offset = (1LL << 31) - mean;
scale = (max_float - min_float) / (1 << 28);
first_time = false;
}

Expand Down Expand Up @@ -123,4 +122,4 @@ size_t SigprocFile::get_data(size_t nsamps, char *data) {

size_t bytes_read = m_file_stream.gcount();
return bytes_read / nchan_bytes;
};
};

0 comments on commit 3b9179f

Please sign in to comment.