<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.

#pragma once

#ifndef VSNRAY_CUDA_PITCH2D_H
#define VSNRAY_CUDA_PITCH2D_H

#include <cassert>

#include <cuda_runtime_api.h>

#include <visionaray/detail/macros.h>

namespace visionaray
{
namespace cuda
{

//-------------------------------------------------------------------------------------------------
//
//

template <typename T>
class pitch2d
{
public:

    // width and height are always *elements*


    pitch2d() = default;

    pitch2d(size_t width, size_t height)
    {
        allocate(width, height);
    }

    pitch2d(pitch2d&& rhs)
        : device_ptr_(rhs.release())
        , dpitch_(rhs.dpitch_)
    {
    }

   ~pitch2d()
    {<commit_msg>CUDA 6.5 compile fix<commit_after>// This file is distributed under the MIT license.
// See the LICENSE file for details.

#pragma once

#ifndef VSNRAY_CUDA_PITCH2D_H
#define VSNRAY_CUDA_PITCH2D_H

#include <cassert>

#include <cuda_runtime_api.h>

#include <visionaray/detail/macros.h>

namespace visionaray
{
namespace cuda
{

//-------------------------------------------------------------------------------------------------
//
//

template <typename T>
class pitch2d
{
public:

    // width and height are always *elements*


    pitch2d() {}

    pitch2d(size_t width, size_t height)
    {
        allocate(width, height);
    }

    pitch2d(pitch2d&& rhs)
        : device_ptr_(rhs.release())
        , dpitch_(rhs.dpitch_)
    {
    }

   ~pitch2d()
    {
{'fraction_non_alphanumeric': 0.2246234446627374, 'fraction_numerical': 0.011787819253438114, 'mean_word_length': 1.8614232209737829, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4131170', 'n_tokens_mistral': 510, 'n_tokens_neox': 492, 'n_words': 114}