Skip to content

Commit

Permalink
half: implement dummy half support to get cts to build.
Browse files Browse the repository at this point in the history
This gets past the CTS common code requiring half classes.
  • Loading branch information
airlied committed Jun 24, 2018
1 parent 6e5565f commit 9aaa7d0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/CL/sycl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "CL/sycl/event.hpp"
#include "CL/sycl/exception.hpp"
#include "CL/sycl/group.hpp"
#include "CL/sycl/half.hpp"
#include "CL/sycl/handler.hpp"
#include "CL/sycl/h_item.hpp"
#include "CL/sycl/id.hpp"
Expand Down
24 changes: 24 additions & 0 deletions include/CL/sycl/half.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#ifndef TRISYCL_SYCL_HALF_HPP
#define TRISYCL_SYCL_HALF_HPP

/** \file SYCL Half support - dummy
This file is distributed under the University of Illinois Open Source
License. See LICENSE.TXT for details.
*/

/* Dummy half implementation - this is enough to get the CTS to build. */
namespace cl {
namespace sycl {

class half {
public:
half(int) {};

bool operator>(const half &h1) { return false; };
};

}

}

#endif

0 comments on commit 9aaa7d0

Please sign in to comment.