Skip to content

Commit

Permalink
0.0.1dev0
Browse files Browse the repository at this point in the history
  • Loading branch information
celik-muhammed committed Dec 16, 2024
1 parent 5f4b5a0 commit 2b09f96
Show file tree
Hide file tree
Showing 44 changed files with 6,164 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@

## Identifying file types
# *.txt text
# *.jpg binary
# *.jpg binary
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2

updates:
# Maintain dependencies for GitHub Actions as recommended in SPEC8:
# https://github.com/scientific-python/specs/pull/325
# At the time of writing, release critical workflows such as
# pypa/gh-action-pypi-publish should use hash-based versioning for security
# reasons. This strategy may be generalized to all other github actions
# in the future.
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
commit-message:
prefix: "MAINT"
labels:
- "03 - Maintenance"
30 changes: 0 additions & 30 deletions .github/workflows/ci.yml

This file was deleted.

522 changes: 522 additions & 0 deletions .github/workflows/wheels.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ pip-delete-this-directory.txt
atlassian-ide-plugin.xml

# OS droppings
**.DS_Store
**.DS_Store
6 changes: 0 additions & 6 deletions CITATION.bib
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
% ---------------------------------------------------------
% CITATION.bib file for lightnumpy
% This file provides citation information for users
% who want to cite the library, related papers, and books.
% ---------------------------------------------------------
@misc{lightnumpy:vlatest,
author = { scikit-plots developers },
title = { lightnumpy: A lightweight version of NumPy (or similar functionality) },
Expand Down
6 changes: 0 additions & 6 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# ---------------------------------------------------------
# CITATION.cff file for lightnumpy
# This file provides citation information for users
# who want to cite the library, related papers, and books.
# ---------------------------------------------------------

cff-version: 1.2.0 # The version of the CFF format used.
message: "If you use this software, please cite it using the following metadata."
title: "lightnumpy: A lightweight version of NumPy (or similar functionality)"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD-3 Clause License

Copyright (c) [2024 - ], [scikit-plots Developers]
Copyright (c) [2024 - ], [scikit-plots Developers]

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ recursive-include lightnumpy *

## Include all non-Python files in your package directory (e.g., data files, config files)
## Replace `your_package_name` with the actual name of your package
# recursive-include scikitplot *.txt *.csv *.json *.yaml
# recursive-include lightnumpy *.txt *.csv *.json *.yaml

## Exclude unnecessary files or directories (useful for keeping the package clean)
# prune tests # Exclude the tests directory from the distribution
Expand Down
2 changes: 1 addition & 1 deletion docs/source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Frequently Asked Questions
==========================

Q: How is LightNumPy different from NumPy?
A: LightNumPy is lightweight, modular, and supports GPU/TPU operations.
A: LightNumPy is lightweight, modular, and supports GPU/TPU operations.
Empty file.
4 changes: 2 additions & 2 deletions lightnumpy/_core/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if get_option('lnpy_use_numcpp').enabled()
_global_numcpp_args += [
# The -D flag defines a macro that is globally available during compilation.
# The -U flag removes a macro definition during compilation, effectively ignoring it.
'-DLNPY_USE_NUMCPP', # Default disable all NumCpp features
'-DLNPY_USE_NUMCPP', # Enable all NumCpp features
'-DNUMCPP_INCLUDE_PYBIND_PYTHON_INTERFACE', # Include PyBind11 Python interface helper functions
# The -f option in compilers like gcc or g++ is used to enable
# or disable specific compiler features or behaviors.
Expand Down Expand Up @@ -48,7 +48,7 @@ if get_option('lnpy_use_numcpp').enabled()
endif
else
_global_numcpp_args += [
'-U LNPY_USE_NUMCPP', # Default disable all NumCpp features
'-U LNPY_USE_NUMCPP', # Disable all NumCpp features
]
endif

Expand Down
2 changes: 2 additions & 0 deletions lightnumpy/_gpu_core/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Here Sample: numC++: Accelerated GPU Library for C++, with NumPy syntax
# https://github.com/Sha-x2-nk/numCpp
Empty file.
5 changes: 5 additions & 0 deletions lightnumpy/_gpu_core/include/b.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#define N 8

extern __device__ int g[N];

extern __device__ void bar(void);
38 changes: 38 additions & 0 deletions lightnumpy/_gpu_core/include/gpu_array_ops.cuh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#pragma once // Ensure the file is included only once by the compiler

#ifndef GPU_ARRAY_OPS_CUH
#define GPU_ARRAY_OPS_CUH

#include "numC++/npGPUArray.cuh"
#include "numC++/gpuConfig.cuh"

#ifdef __cplusplus
extern "C" {
#endif

// Wrapper for initializing GPU configuration
void init_gpu_config(int device_id);

// Create a GPU array with default values
void* create_gpu_array(int rows, int cols, float default_value);

// Create a GPU array from a 1D array
void* create_gpu_array_1d(const float* data, int size);

// Create a GPU array from a 2D array
void* create_gpu_array_2d(const float* data, int rows, int cols);

// Get GPU array metadata
int get_gpu_array_rows(void* array);
int get_gpu_array_cols(void* array);
int get_gpu_array_size(void* array);
float* get_gpu_array_data(void* array);

// Clean up GPU array
void delete_gpu_array(void* array);

#ifdef __cplusplus
}
#endif

#endif // GPU_ARRAY_OPS_CUH
1 change: 0 additions & 1 deletion lightnumpy/_gpu_core/include/gpu_ops.hpp

This file was deleted.

Loading

0 comments on commit 2b09f96

Please sign in to comment.