minor update

This commit is contained in:
Blaise Tine 2024-06-14 07:45:37 -07:00
parent 3f52964a94
commit cf3413c824
12 changed files with 6 additions and 34 deletions

View file

@ -18,6 +18,7 @@
#define __VX_INTRINSICS_H__
#include <stddef.h>
#include <stdint.h>
#include <VX_types.h>
#if defined(__clang__)

View file

@ -1,4 +1,3 @@
#include <stdint.h>
#include <vx_intrinsics.h>
#include "common.h"
@ -9,10 +8,10 @@ int main() {
int32_t* dst_ptr = (int32_t*)arg->dst_addr;
uint32_t offset = vx_core_id() * count;
for (uint32_t i = 0; i < count; ++i) {
dst_ptr[offset + i] = src_ptr[offset + i];
}
return 0;
}

View file

@ -1,12 +1,6 @@
#include <stdint.h>
#include <vx_intrinsics.h>
#include <vx_spawn.h>
#include "common.h"
inline char is_log2(uint32_t x) {
return ((x & (x-1)) == 0);
}
void kernel_body(kernel_arg_t* __UNIFORM__ arg) {
auto I = reinterpret_cast<TYPE*>(arg->I_addr);
auto W = reinterpret_cast<TYPE*>(arg->use_lmem ? __local_mem(0) : (void*)arg->W_addr);

View file

@ -1,5 +1,3 @@
#include <stdint.h>
#include <vx_intrinsics.h>
#include <vx_spawn.h>
#include "common.h"

View file

@ -1,8 +1,6 @@
#include <stdint.h>
#include <vx_spawn.h>
#include <assert.h>
#include <algorithm>
#include <vx_intrinsics.h>
#include <vx_spawn.h>
#include "common.h"
// Parallel Selection sort

View file

@ -1,8 +1,6 @@
#include <stdint.h>
#include <math.h>
#include <vx_intrinsics.h>
#include <vx_spawn.h>
#include <vx_print.h>
#include <math.h>
#include "common.h"
typedef void (*PFN_Kernel)(kernel_arg_t* __UNIFORM__ arg);

View file

@ -1,5 +1,3 @@
#include <stdint.h>
#include <vx_intrinsics.h>
#include <vx_spawn.h>
#include "common.h"

View file

@ -1,5 +1,3 @@
#include <stdint.h>
#include <vx_intrinsics.h>
#include <vx_spawn.h>
#include "common.h"

View file

@ -1,5 +1,3 @@
#include <stdint.h>
#include <vx_intrinsics.h>
#include <vx_spawn.h>
#include "common.h"

View file

@ -1,7 +1,5 @@
#include <stdint.h>
#include <vx_intrinsics.h>
#include <vx_print.h>
#include <vx_spawn.h>
#include <vx_print.h>
#include "common.h"
void kernel_body(kernel_arg_t* __UNIFORM__ arg) {

View file

@ -1,12 +1,6 @@
#include <stdint.h>
#include <vx_intrinsics.h>
#include <vx_spawn.h>
#include "common.h"
inline char is_log2(uint32_t x) {
return ((x & (x-1)) == 0);
}
void kernel_body(kernel_arg_t* __UNIFORM__ arg) {
auto A = reinterpret_cast<TYPE*>(arg->A_addr);
auto B = reinterpret_cast<TYPE*>(arg->B_addr);

View file

@ -1,5 +1,3 @@
#include <stdint.h>
#include <vx_intrinsics.h>
#include <vx_spawn.h>
#include "common.h"