Using NCCL library from cupy in a cython file (.pyx) - cython

I am trying to import the function and definitions on https://github.com/cupy/cupy/blob/master/cupy_backends/cuda/libs/nccl.pyx
To a pyx file with a cimport, but it is not working.
I would like to know if it is even possible and if someone can give me some guidance about how to do it?
I noticed that on the cupy folder (after installing it with pip) the file nccl.pyx does not even exist just the .so for the library, thus the question if it is possible.
Thank you for the help!
This is my first question here so sorry if there is a mistake!

Related

Convert CityGML model to CityJson file

I need help in converting CityGML model to CityJson file using Citygml4j/Citygml-tools` as I need to visualize the CityGML model in the Qgis Software. The tutorial that I get from CityJson website is to simple for student like me. I hopefully any one of you can help to step by step the solution of converting CityGML to CityJson. I sincerely appreciate any of your help. Thank you.
https://www.cityjson.org/tutorials/conversion/
https://towardsdatascience.com/loading-3d-city-models-in-qgis-46347a638760
Accordingly to its readme file in their github repo, it is basically:
citygml-tools to-cityjson /path/to/your/CityGML.gml
considering that you're in an unix system and opened your terminal at the package folder.
in windows it should be:
citygml-tools.exe to-cityjson your_CityGML.gml
considering that you're in the package folder and also the citygml file

Import behaviour when file/folder has the same name

ES6 newbie here. Maybe it's an easy question, but haven't found any useful info on this. I have modals.js file and modals folder in actions directory.
How can I tell javascript whether I want to import a file or a folder if they have same name?
My expectation is that:
import {...} from './actions/modals'
Can be treated either as modals.js file or modals/index.js. Is there any widely spread solution that will work on any bundler, that will guarantee what exactly do I require?
I understand that I can try to use '.js' extension like:
import {...} from './actions/modals.js'
But my research shown that not all builders support file extension.
I would really appreciate your help in my ES6 learning
Combining everything that was mentioned in the comments I've ended up in a way to always specify either / in the end if I refer to a folder or .js if I refer to specific file.

Missing Function in Filemaker

I'm troubleshooting a Filemaker script made by someone else before me. I'm trying to determine what this missing function would be in the code below. The purpose of my script is to import data from a csv, which is done with Import Records, but I still think I need to fix the lines below for the whole script to work. It seems like the function is taking a csv file from our server and putting in on the local machine.
If anyone could give me an educated guess as to what the <Function Missing> is, I'd greatly appreciate it.
<Function Missing>( "//192.168.168.81/htdocs/API/Pipedrive/Deals.csv";
"C:/Program Files/FileMaker/FileMaker/Server/Data/Documents/Deals.csv")
It ended up being CopyFile from 360Works WebAssistant Plugin, the line of the script looks like CopyFile( "//192.168.168.81/htdocs/API/Pipedrive/Deals.csv";
"C:/Program Files/FileMaker/FileMaker/Server/Data/Documents/Deals.csv") and that copy's the file from the internet location to local storage.

Getting a path of accessed script in Dart

The aim is to create a config file for server-side Dart application, which can be imported as needed into scripts like so:
import 'Config/config.dart';
What is crucial for this config script however, is that it knows it's own location when being accessed with an import (not the location of the file accessing it). Currently it uses this line below to find the path:
final String ROOT_DIR = dirname(Platform.script.toFilePath());
However, this returns the file path of the file importing it and not the file that is being imported. This needs to be known purely for working out a relative path to the root folder, which will allow other absolute paths to be known in the config file (such as routes, controllers, and things), like so:
final String PUBLIC_DIR = join(ROOT_DIR, 'Public');
final String VIEWS_DIR = join(ROOT_DIR, 'Views');
What would be the best way of approaching this? I have seen this post: Get script path in Dart (analog __DIR__ constant in PHP) which is the same sort of situation, however I can't see a clean way of using relative paths to find the route folder.
Probably missing something really obvious, but can't see it at the moment. Any help would be much appreciated, thank you for reading.
This is not supported in Dart.
Maybe Mezoni found some kind of trick to get this information which he packed in his caller_info package https://stackoverflow.com/a/24880092/217408.
You can't rely on the path where the files are stored during development.
Currently it is only experimental but when you run dart2dart on your code, all or many parts of the code are inlined.

MXMLC compiler missing filesystem library

I've had not trouble until this point directly from MXMLC command line. While compiling Actionscript 3 code I ran into a dependency problem.
import flash.filesystem;
and I get
Error: Definition flash:filesystem could not be found
There are another or two file-related libraries such as filestream. Where can I find these standard libraries and how might I add them to my MXMLC library PATH?
What are the specific classes you are trying to use? If you want to import all of the classes in the flash.filesystem package you need a * at the end of that import statement. Otherwise you need to append the class name(s). Something like one of these:
import flash.filesystem.*;
or
import flash.filesystem.File;
The other thing that might be an issue is the values in your flex-config.XML (or air-config.xml) file that is part of the SDK. You might need to configure this to include the classes in the AIR sdk, etc.